<?php /*
///-build_id: 2014060714.1543
/// This source file is subject to the Software License Agreement that is bundled with this 
/// package in the file license.txt, or you can get it here
/// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use
///
/// @copyright  2009-2012 Addons-Modules.com
///
*/
${"G\x4cO\x42A\x4c\x53"}["l\x77\x77\x73\x75ml\x77"]="\x69\x64_\x6da\x69n\x5f\x73t\x6f\x72e";${"\x47\x4c\x4fBA\x4cS"}["\x7a\x6f\x6e\x70l\x71"]="r\x65\x77ri\x74ti\x6e\x67\x5f\x73\x65tt\x69\x6e\x67\x73";${"G\x4c\x4f\x42ALS"}["ja\x6f\x6b\x6a\x65\x73\x62\x74\x74"]="specia\x6c\x63\x61t\x65\x67\x6fryi\x64\x73";${"G\x4cO\x42\x41\x4cS"}["bn\x63\x6f\x71\x6c"]="\x70\x72\x65f\x69\x78";${"G\x4c\x4f\x42\x41\x4cS"}["\x73\x7a\x6bd\x7a\x70\x66\x6d\x7a"]="\x6e\x6f\x5fs\x70\x65\x63\x69al_\x70r\x6f\x64\x75\x63\x74s";${"G\x4cO\x42\x41\x4c\x53"}["\x6aep\x73\x69\x74\x67\x6b"]="\x69d\x5f\x73ho\x70_\x6fw\x6e\x65r";${"\x47\x4c\x4fBA\x4c\x53"}["\x69t\x6ae\x71nv\x64"]="\x6ao\x69\x6e\x73";${"\x47\x4cO\x42\x41L\x53"}["p\x6f\x70\x78m\x6cu\x66\x6c"]="\x73e\x6ce\x63\x74\x73";${"G\x4cO\x42AL\x53"}["\x75\x73\x6cc\x6c\x6d\x64l"]="\x77h\x65\x72\x65s";${"\x47\x4c\x4f\x42AL\x53"}["\x72\x63\x74\x66ic\x6b"]="\x78r\x5f\x6f\x62\x6ai\x64";${"GL\x4fBALS"}["e\x71\x6e\x74\x6f\x75\x7a\x72\x69k"]="\x63\x61t\x65\x67\x6fry";${"G\x4c\x4fBA\x4c\x53"}["w\x7a\x7af\x72\x77\x63\x70"]="\x63\x6f\x6f\x6b\x69e";${"\x47\x4cO\x42A\x4cS"}["ixob\x69\x78\x70\x79\x66\x74"]="\x63\x61rt";${"\x47\x4cO\x42\x41\x4cS"}["k\x68\x61em\x78ym"]="\x70a\x67e\x6ea\x6d\x65";${"G\x4c\x4f\x42A\x4c\x53"}["n\x6b\x61\x6b\x7a\x6bc"]="\x69d\x5f\x6c\x61\x6eg";${"\x47\x4cO\x42\x41L\x53"}["l\x73\x63\x6a\x71e\x68r\x6a\x63"]="\x6eu\x6d";${"\x47\x4cO\x42\x41\x4cS"}["xp\x77\x66yp\x70\x66\x79\x78"]="\x6dem\x62\x65rs\x68\x69\x70";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6ce\x72\x6c\x62\x76\x69\x6f\x6cb\x6d"]="\x73\x68\x69pp\x69\x6eg\x5f\x74\x6f\x74\x61\x6c_\x77t";${"\x47L\x4f\x42\x41\x4cS"}["\x79\x6byrt\x77kt\x79"]="s\x68i\x70p\x69\x6e\x67_\x74\x6f\x74\x61\x6c\x5f\x6e\x74";${"G\x4cO\x42A\x4cS"}["\x67\x71d\x71\x70v\x74q\x63\x65\x6e"]="\x6fr\x64\x65r\x5f\x74\x6f\x74a\x6c_\x6e\x74";${"GL\x4f\x42\x41\x4c\x53"}["\x76\x72m\x75\x6fs\x71\x68\x75\x75\x63"]="\x63\x61\x72ri\x65r_\x63\x6fst_\x77\x74";${"\x47LOB\x41\x4cS"}["fvw\x66f\x6e\x62\x73ec\x78"]="\x63\x61rr\x69\x65\x72\x5fw\x65\x69\x67h\x74";${"\x47\x4cOBA\x4c\x53"}["x\x67o\x73\x66\x63\x66"]="ca\x72\x72\x69e\x72\x5fc\x6f\x73\x74\x5fn\x74";${"GLOBAL\x53"}["\x78d\x76\x62v\x71\x77\x6am\x67\x68"]="\x63a\x72\x72\x69\x65r_pr\x6fd\x75\x63\x74s";${"G\x4cOB\x41\x4cS"}["gjxc\x78i\x6f"]="\x69\x64_\x63\x61\x72\x72i\x65r";${"\x47L\x4fB\x41\x4c\x53"}["\x67\x74\x69\x79\x72\x66\x67"]="\x63\x61\x72\x72\x69\x65\x72";${"\x47L\x4f\x42A\x4c\x53"}["r\x71io\x69\x68"]="c\x61rr\x69e\x72\x5fa\x6d\x6f\x75n\x74";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x62\x79ms\x6dvj\x65ss"]="\x63\x61\x72ri\x65\x72_a\x6d\x6f\x75\x6e\x74\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x67\x68\x6a\x71q\x76\x63"]="p\x72\x6f\x64u\x63ts";${"\x47\x4cOBALS"}["szt\x72ss\x6d"]="\x70\x72odu\x63\x74\x5f\x69n\x64e\x78";${"\x47\x4cOBA\x4cS"}["\x69jvc\x74m\x6d\x69\x74\x6ft\x78"]="o\x72d\x65r";${"\x47\x4cO\x42\x41L\x53"}["\x77\x70\x62\x65y\x6d\x75o\x79\x62p\x6b"]="i\x64\x5f\x6f\x72\x64\x65r";${"G\x4c\x4fB\x41\x4c\x53"}["\x78b\x78\x70\x76y\x6c"]="\x72e\x63";${"G\x4c\x4fBAL\x53"}["\x63y\x62qg\x71w\x70\x73d"]="r\x65\x63\x73";${"\x47\x4cOBAL\x53"}["\x6ao\x69\x63rmdn"]="id\x5f\x70\x72\x6f\x64uct";${"\x47\x4c\x4f\x42A\x4cS"}["\x70\x65e\x64hx"]="\x69\x64\x78";${"\x47\x4cOB\x41\x4c\x53"}["\x6a\x7a\x6dg\x67\x74e\x6du\x66"]="u\x70d\x61\x74\x65s";${"G\x4c\x4fBA\x4cS"}["\x68\x64\x62q\x6f\x68\x66\x76"]="\x72\x6f\x77\x73";${"G\x4c\x4f\x42\x41LS"}["\x77ts\x75\x68\x78\x79"]="i\x64_\x6f\x77\x6e\x65\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x77\x75\x67\x6f\x62q\x69\x6e\x78"]="\x6c\x69s\x74";${"GLO\x42A\x4c\x53"}["\x6b\x70\x79\x6e\x77c\x75\x78\x6c\x70\x71"]="i\x64_c\x61\x74\x65g\x6f\x72\x79";${"\x47L\x4fB\x41L\x53"}["u\x70\x67\x78\x76e\x6b\x6dq\x69\x75\x68"]="\x72\x65\x74";${"G\x4cOBA\x4c\x53"}["r\x63\x64\x70\x76s\x79\x65\x6d\x6d"]="\x72\x65\x73\x75lt";${"\x47\x4cOB\x41\x4cS"}["\x64\x6b\x6f\x66\x76\x65\x65\x73"]="\x6b\x65\x79";${"\x47\x4cO\x42ALS"}["\x67\x6cut\x71x\x73\x73"]="\x72es2";${"G\x4c\x4f\x42\x41LS"}["\x78\x6cge\x62jsm\x63q"]="\x73\x68\x6f\x77H\x69\x64de\x6e\x53\x74\x61\x74\x75\x73";${"\x47LO\x42A\x4c\x53"}["u\x68j\x6e\x66hubx"]="\x73\x65\x6ce\x63\x74";${"G\x4c\x4f\x42\x41\x4c\x53"}["f\x6a\x69px\x78\x73tf\x6c"]="\x77he\x72\x65";${"\x47L\x4f\x42\x41\x4c\x53"}["b\x66\x75o\x6bpm\x6e\x63\x78\x69"]="i";${"GL\x4fB\x41L\x53"}["\x6fch\x68\x63bv\x63\x77"]="\x73\x6f\x72\x74";${"\x47LO\x42A\x4c\x53"}["\x73\x7a\x67nxt\x73s"]="\x66r\x6fm";${"G\x4c\x4f\x42\x41LS"}["\x74s\x74\x71\x75\x70\x73\x66\x73"]="\x6f\x72\x64\x65\x72way";${"\x47L\x4f\x42\x41\x4c\x53"}["\x67evo\x73\x6a\x78z\x77vz"]="o\x72de\x72b\x79";${"GLO\x42AL\x53"}["m\x62\x6d\x77\x63\x76\x70\x79i"]="n";${"\x47LO\x42A\x4c\x53"}["\x6bx\x72d\x68\x6d\x69k\x72\x72d"]="p";${"\x47L\x4fB\x41\x4c\x53"}["\x70\x66cy\x69vj"]="\x6e\x62_\x6f\x6e\x6cy";${"GL\x4f\x42\x41\x4c\x53"}["\x66\x65jt\x7al\x66\x70"]="\x73\x71\x6c\x34\x63\x69\x64\x73";${"\x47\x4cOB\x41\x4cS"}["\x64v\x6e\x65\x63\x76\x69"]="s\x71\x6c4p\x69\x64s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x68\x76nah\x61"]="\x73\x74at\x75s";${"\x47\x4c\x4f\x42ALS"}["el\x68t\x72\x74\x71\x6b\x6e"]="\x61\x63t\x69\x6f\x6e_\x72\x65\x71uire\x64";${"\x47L\x4f\x42A\x4c\x53"}["\x64\x6c\x63q\x6fr\x72\x69\x76"]="\x73\x74ate";${"\x47L\x4f\x42\x41\x4c\x53"}["m\x6bmt\x67c\x67b\x76\x79d"]="\x63on\x66";${"\x47L\x4f\x42A\x4c\x53"}["y\x74\x67\x76\x61\x6d\x6ew"]="i\x64\x5fs\x65l\x6ce\x72\x69\x6e\x66o";${"\x47L\x4f\x42ALS"}["\x79\x78\x6aw\x79\x79\x63qox"]="\x73\x65\x6cl\x65\x72i\x6efo";${"GL\x4f\x42A\x4c\x53"}["\x69bs\x6etf\x6d\x6frj\x67"]="\x6d\x6fd\x75\x6c\x65";${"\x47\x4cO\x42\x41\x4cS"}["p\x6f\x65p\x71s\x6bs\x6d"]="\x74\x65\x6d\x70\x6ca\x74\x65Var\x73";${"GL\x4fB\x41\x4c\x53"}["\x64f\x76\x71\x62\x70aw\x65"]="\x71\x75\x65\x72\x79";${"G\x4c\x4fBA\x4c\x53"}["\x7aq\x6d\x6clm\x70\x6b\x62t\x7a"]="\x65\x6et\x69\x74y\x5f\x6du\x6c\x74\x69\x6f\x77\x6e\x65\x72";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x71r\x62\x63\x78\x76\x6d\x6f\x6e"]="r\x6f\x77";${"\x47\x4c\x4f\x42A\x4c\x53"}["q\x69\x6fzr\x62\x62\x65"]="\x69d\x5f\x66\x69\x65\x6c\x64_\x6e\x61\x6de";${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x68l\x76\x74\x79\x6b\x75p"]="\x78\x72\x5fta\x62\x6c\x65";${"\x47L\x4f\x42A\x4c\x53"}["\x61\x64\x64\x7a\x6f\x68\x70x\x6fncn"]="o\x77\x6eer\x49\x6efo";${"\x47L\x4fB\x41\x4c\x53"}["dib\x73d\x66\x72\x74"]="\x6f\x62ji\x64";${"\x47\x4c\x4fB\x41L\x53"}["rs\x67\x75\x63\x6b\x7a\x62m\x75x"]="\x65\x61\x63\x65ss";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x73y\x6a\x6f\x76vc"]="\x72e\x73";${"\x47\x4c\x4fB\x41\x4cS"}["uh\x74t\x63\x70h\x75\x6e\x79\x6f"]="\x69\x64\x5fc\x75\x73\x74\x6f\x6d\x65r";${"\x47LO\x42AL\x53"}["g\x73\x74\x73l\x78\x67l"]="o\x77n\x65r\x69n\x66\x6f";${"\x47\x4cOB\x41LS"}["q\x69\x78\x79\x79\x75\x62\x79\x76\x71\x74"]="la\x62\x65\x6c\x34\x7a\x65\x72o";${"\x47\x4cO\x42AL\x53"}["\x67jlgf\x63pj"]="\x73\x71l";${"GLO\x42\x41LS"}["\x6caqpmrh\x66\x72"]="id";${"G\x4c\x4fB\x41LS"}["\x72dfu\x6f\x6b\x6am"]="\x69d\x5f\x73\x65\x6cler";${"\x47\x4c\x4f\x42\x41L\x53"}["ln\x71p\x6aud\x6c\x61y\x70\x71"]="e\x61\x63\x63\x65\x73s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64\x63m\x62\x6bh\x76\x73\x7as\x76"]="\x65\x6e\x74\x69\x74\x79_\x61\x63c\x65\x73\x73\x65\x73";${"G\x4c\x4f\x42A\x4cS"}["\x77\x6bkq\x79\x6b\x74\x73\x6c"]="\x74a\x62\x6c\x65";class AgileSellerManagerCore{const OWNER_TABLE_UNKNOWN=0;const OWNER_TABLE_DEFINED=1;const OWNER_TABLE_SHARED=2;private static$entity_multiowner=array('customer');private static$entity_accesses=array('agile_sellermessage'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'attachment'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'cart_rule'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'cms'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'cms_category'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'feature'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'group'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>0),'product'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'carrier'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>0),'category'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>0),'customer'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'customer_thread'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'location'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'manufacturer'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'order'=>array('owner_table_type'=>1,'owner_xr_table'=>'','is_exclusive'=>1),'order_carrier'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_message'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'supplier'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'specific_price'=>array('owner_table_type'=>2,'owner_xr_table'=>'product','is_exclusive'=>1),'specific_price_rule'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'tag'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),'address'=>array('owner_table_type'=>1,'owner_xr_table'=>'customer','is_exclusive'=>1),'order_history'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_invoice'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'order_return'=>array('owner_table_type'=>1,'owner_xr_table'=>'order','is_exclusive'=>1),'range_price'=>array('owner_table_type'=>1,'owner_xr_table'=>'carrier','is_exclusive'=>1),'range_weight'=>array('owner_table_type'=>1,'owner_xr_table'=>'carrier','is_exclusive'=>1),'stock_available'=>array('owner_table_type'=>1,'owner_xr_table'=>'product','is_exclusive'=>1),'feature_value'=>array('owner_table_type'=>2,'owner_xr_table'=>'feature','is_exclusive'=>1),'sellerinfo'=>array('owner_table_type'=>2,'owner_xr_table'=>'','is_exclusive'=>1),);public static function get_entity_access($table){${"\x47\x4cO\x42\x41\x4cS"}["\x66h\x72\x67\x66\x6a"]="t\x61b\x6c\x65";if(${${"\x47\x4c\x4fBA\x4c\x53"}["fh\x72\x67\x66j"]}=="\x6fr\x64e\x72s")${${"G\x4c\x4fB\x41\x4cS"}["\x77\x6bk\x71\x79k\x74sl"]}="ord\x65r";if(isset(self::${${"\x47\x4c\x4f\x42\x41L\x53"}["\x64\x63m\x62k\x68\x76\x73z\x73\x76"]}[${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6bk\x71yk\x74s\x6c"]}]))return self::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x63\x6d\x62\x6b\x68\x76\x73\x7as\x76"]}[${${"GL\x4f\x42A\x4cS"}["\x77\x6bk\x71\x79\x6b\x74\x73\x6c"]}];return array("ow\x6eer\x5fta\x62le\x5ft\x79\x70e"=>self::OWNER_TABLE_UNKNOWN,"\x6f\x77ner\x5f\x78r_ta\x62l\x65"=>"","i\x73_e\x78\x63\x6c\x75\x73\x69ve"=>1);}public static function assignObjectOwner($table,$id,$id_seller){${"\x47\x4c\x4f\x42\x41LS"}["jk\x76\x63r\x78buq\x6f"]="e\x61c\x63\x65\x73s";$coznmqdkrskh="tab\x6c\x65";${${"\x47\x4c\x4fBA\x4c\x53"}["\x6a\x6b\x76\x63\x72\x78\x62\x75\x71\x6f"]}=self::get_entity_access(${$coznmqdkrskh});if(${${"GLO\x42\x41L\x53"}["\x6c\x6eq\x70\x6a\x75\x64\x6cay\x70q"]}["\x6f\x77ner_ta\x62l\x65_t\x79p\x65"]==AgileSellerManager::OWNER_TABLE_DEFINED){${"G\x4cOB\x41L\x53"}["\x71n\x6b\x72k\x76\x6c\x6edg\x6b"]="\x74\x61\x62\x6c\x65";${"\x47\x4c\x4f\x42\x41LS"}["\x72t\x6f\x70\x73\x71\x73\x7a\x71\x63\x79"]="\x69d";self::assignObjectOwnerDefined(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71n\x6b\x72\x6b\x76\x6c\x6e\x64gk"]},${${"\x47LOB\x41L\x53"}["\x6c\x6e\x71\x70j\x75d\x6ca\x79p\x71"]}["o\x77\x6e\x65\x72\x5f\x78r\x5f\x74a\x62\x6c\x65"],${${"G\x4cO\x42\x41L\x53"}["\x72t\x6fp\x73\x71s\x7a\x71c\x79"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72dfu\x6fk\x6a\x6d"]});}else{self::assignObjectOwnerShared(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x6b\x6b\x71\x79\x6b\x74sl"]},${${"\x47L\x4f\x42ALS"}["l\x6e\x71\x70\x6audla\x79p\x71"]}["own\x65r_xr\x5ftabl\x65"],${${"G\x4c\x4fB\x41\x4cS"}["\x6c\x61\x71\x70\x6drh\x66r"]},${${"\x47L\x4f\x42AL\x53"}["\x72\x64\x66\x75\x6f\x6bj\x6d"]});}}public static function deleteObjectOwner($table,$id){$pfjxkordxc="i\x64";if(intval(${$pfjxkordxc})<=0)return;${${"\x47\x4cO\x42A\x4c\x53"}["\x6c\x6eq\x70\x6a\x75\x64l\x61\x79\x70\x71"]}=self::get_entity_access(${${"GL\x4fB\x41\x4c\x53"}["w\x6b\x6bq\x79\x6btsl"]});if(!empty(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6c\x6eq\x70\x6a\x75\x64\x6cay\x70\x71"]}["\x6fw\x6eer_\x78\x72_tab\x6c\x65"]))return;${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x63\x70\x74\x76\x77\x68\x77\x64x"]="e\x61\x63\x63e\x73\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x61b\x63p\x62\x73\x7af\x69\x79"]="s\x71\x6c";if(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6bcp\x74v\x77\x68w\x64x"]}["\x6f\x77\x6eer\x5f\x74able\x5fty\x70e"]==AgileSellerManager::OWNER_TABLE_DEFINED){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64ir\x6at\x65\x66t\x6c\x62"]="\x74a\x62\x6ce";${"GL\x4fB\x41LS"}["r\x64\x76g\x75\x6fu\x78q\x64"]="i\x64";${"\x47\x4c\x4f\x42A\x4c\x53"}["l\x6f\x68ho\x7a\x70ns\x6b\x6dg"]="\x74a\x62\x6c\x65";${"\x47L\x4f\x42ALS"}["s\x66ne\x76\x6f\x71"]="ta\x62l\x65";${"GL\x4f\x42AL\x53"}["\x76u\x71\x72a\x65d"]="\x74\x61bl\x65";${${"G\x4cOBA\x4c\x53"}["\x67\x6a\x6c\x67\x66\x63p\x6a"]}="DEL\x45\x54E\x20\x46R\x4fM\x20"._DB_PREFIX_.(${${"\x47L\x4fB\x41\x4c\x53"}["sf\x6ee\x76o\x71"]}=="o\x72\x64ers"?"\x6f\x72\x64\x65r":${${"G\x4c\x4f\x42\x41LS"}["\x64\x69\x72\x6a\x74e\x66\x74\x6cb"]})."_\x6fw\x6eer\x20WHERE\x20id\x5f".(${${"G\x4c\x4f\x42\x41\x4cS"}["v\x75\x71\x72\x61e\x64"]}=="\x6f\x72d\x65rs"?"or\x64er":${${"\x47LO\x42\x41L\x53"}["\x6c\x6fhho\x7ap\x6e\x73\x6b\x6dg"]})."=".${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x72dv\x67u\x6f\x75\x78qd"]};}else{${${"G\x4c\x4f\x42\x41L\x53"}["\x67\x6alg\x66cp\x6a"]}="\x44\x45L\x45T\x45 \x46ROM\x20"._DB_PREFIX_."o\x62\x6a\x65\x63t_own\x65\x72\x20W\x48ERE \x60\x65\x6e\x74it\x79\x60\x3d\x27".${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77k\x6b\x71\x79k\x74\x73l"]}."\x27\x20\x41ND \x69\x64_o\x62j\x65\x63t\x3d".${${"GL\x4f\x42\x41\x4c\x53"}["\x6c\x61\x71pm\x72\x68f\x72"]};}Db::getInstance()->Execute(${${"\x47LO\x42\x41L\x53"}["g\x61\x62\x63p\x62\x73z\x66\x69\x79"]});}public static function getSellersNV($activeonly=true,$label4zero=''){$yusemiyaa="\x61\x63t\x69\x76e\x6f\x6e\x6cy";$jkxterg="\x73ql";${"G\x4c\x4f\x42ALS"}["\x68\x63\x61u\x6f\x66\x71\x7a"]="l\x61b\x65\x6c4\x7ae\x72\x6f";global$cookie;${${"\x47L\x4f\x42\x41\x4c\x53"}["g\x6a\x6c\x67\x66\x63\x70j"]}="\n  \x20 \t\t\x53E\x4c\x45\x43T e.\x60\x69d_\x65m\x70l\x6f\x79\x65e`\x20A\x53 \x69d\x5fs\x65l\x6c\x65\x72, CASE\x20WH\x45N IF\x4e\x55LL(\x73l\x2e`c\x6f\x6d\x70\x61n\x79`,\x27\x27)\x3d\x27\x27 \x54H\x45N\x20C\x4f\x4eC\x41T(e.\x66\x69\x72\x73t\x6eam\x65,'\x20',\x20e.\x6c\x61\x73\x74n\x61\x6de) ELSE sl\x2e\x60c\x6fm\x70\x61\x6e\x79\x60\x20EN\x44\x20\x41\x53 na\x6d\x65\n\t\x20 \x20 \tF\x52\x4f\x4d `"._DB_PREFIX_."e\x6dpl\x6fy\x65\x65\x60 \x65\n\t  \x20\x20\t\t\x4cEFT JO\x49\x4e\x20`"._DB_PREFIX_."\x73e\x6cl\x65r\x69nf\x6f`\x20\x73 ON \x49\x46\x4e\x55LL(\x73\x2eid\x5fs\x65\x6cler,\x30)\x3d\x65.\x69\x64_\x65m\x70l\x6f\x79ee\n\t  \x20\x20\t\t\x4c\x45\x46\x54\x20JO\x49N \x60"._DB_PREFIX_."\x73e\x6cl\x65\x72in\x66o_\x6c\x61ng`\x20\x73\x6c \x4fN (\x73\x2eid\x5fse\x6c\x6c\x65\x72i\x6e\x66\x6f=s\x6c\x2eid_\x73\x65ll\x65r\x69n\x66o\x20\x41\x4e\x44\x20sl\x2eid\x5f\x6ca\x6eg=".intval($cookie->id_lang).")\n\t\t  \x20\x20\x57HE\x52E\x201=\x31 A\x4e\x44\x20e\x2ei\x64\x5f\x70r\x6f\x66il\x65\x20= ".(int)Configuration::get("AGI\x4c\x45_\x4dS\x5f\x50\x52\x4fFI\x4cE\x5fI\x44")." \n\t\t\x20  \x20".(${$yusemiyaa}?"AND\x20\x65.active \x3d\x201":"")."\n\t\t";if(!empty(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71i\x78\x79\x79ub\x79\x76\x71t"]}))${$jkxterg}="SELE\x43T 0 \x41S\x20id\x5f\x73\x65\x6c\x6ce\x72,\x20'".${${"\x47\x4cO\x42A\x4c\x53"}["\x68\x63auo\x66\x71z"]}."\x27 \x41\x53 n\x61m\x65 U\x4eION ".${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x6a\x6cgf\x63\x70\x6a"]};return Db::getInstance()->ExecuteS(${${"G\x4cOBA\x4cS"}["\x67\x6a\x6c\x67\x66c\x70\x6a"]});}public static function getObjectOwnerID($table,$objid){$cocctdz="\x6f\x77ne\x72\x69\x6e\x66\x6f";${"\x47L\x4f\x42A\x4cS"}["\x74\x62\x70\x63l\x6fb\x79n"]="\x6f\x62\x6a\x69\x64";$dddvpop="ow\x6e\x65\x72\x69\x6e\x66\x6f";${$cocctdz}=self::getObjectOwnerInfo(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x6bkqy\x6bt\x73l"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["tb\x70\x63\x6c\x6fby\x6e"]});if(isset(${${"GLO\x42\x41\x4cS"}["\x67\x73\x74s\x6c\x78\x67\x6c"]}["\x69d\x5f\x6fw\x6ee\x72"]))return intval(${$dddvpop}["i\x64_ow\x6e\x65\x72"]);return-1;}public static function getLinkedSellerID($id_customer){${"\x47LOBA\x4c\x53"}["\x68s\x78\x66\x76\x62gn\x79\x77"]="\x72\x65\x73";${"\x47\x4cO\x42\x41L\x53"}["r\x62\x64\x62\x64\x65\x6eyc\x73\x72"]="\x72\x65s";${"\x47\x4c\x4fBAL\x53"}["\x77l\x67\x64\x75\x6b\x70ph"]="s\x71\x6c";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6c\x6elp\x6b\x76cr\x74"]="r\x65s";${${"GL\x4fB\x41\x4c\x53"}["\x67\x6a\x6cg\x66\x63\x70j"]}="\x53EL\x45\x43\x54 id\x5f\x73e\x6cl\x65\x72\x20FROM\x20`"._DB_PREFIX_."sel\x6ce\x72\x69n\x66o\x60 \x57\x48\x45\x52\x45\x20\x69\x64\x5fc\x75s\x74\x6fm\x65r\x3d".intval(${${"G\x4c\x4fB\x41L\x53"}["uh\x74\x74\x63\x70\x68u\x6e\x79o"]});${${"GL\x4f\x42\x41\x4cS"}["o\x73\x79\x6ao\x76vc"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42ALS"}["\x77\x6c\x67\x64\x75\x6bp\x70h"]});if(isset(${${"\x47LO\x42\x41L\x53"}["hs\x78f\x76bgn\x79w"]}["i\x64\x5fs\x65\x6cl\x65r"])AND intval(${${"G\x4cO\x42\x41\x4cS"}["\x6c\x6e\x6c\x70k\x76\x63\x72\x74"]}["\x69\x64\x5fs\x65\x6cle\x72"])>0)return intval(${${"\x47\x4c\x4f\x42\x41LS"}["\x72\x62\x64b\x64en\x79c\x73\x72"]}["i\x64_s\x65\x6c\x6ce\x72"]);return 0;}public static function getSellerIdByShopId($id_shop){${"\x47\x4c\x4f\x42AL\x53"}["\x65j\x71l\x6c\x61\x6c\x71q"]="\x72e\x73";$sqolgrqnhsj="\x69d_s\x68o\x70";${${"\x47\x4c\x4fB\x41LS"}["\x67\x6a\x6c\x67\x66c\x70\x6a"]}="\x53\x45LECT\x20i\x64_se\x6cl\x65r \x46RO\x4d\x20`"._DB_PREFIX_."\x73el\x6c\x65ri\x6e\x66o\x60 WHER\x45\x20\x69d_\x73\x68\x6f\x70=".intval(${$sqolgrqnhsj});${${"G\x4c\x4fBAL\x53"}["\x6f\x73\x79\x6a\x6fv\x76c"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x6a\x6cgf\x63\x70\x6a"]});${"\x47L\x4fB\x41L\x53"}["qd\x6crj\x6a\x6a\x75\x6e\x6a"]="\x72e\x73";if(isset(${${"G\x4cO\x42\x41\x4cS"}["\x65\x6aq\x6cla\x6c\x71q"]}["\x69\x64_\x73\x65l\x6cer"])AND intval(${${"G\x4c\x4f\x42\x41\x4cS"}["\x71\x64l\x72jj\x6a\x75\x6e\x6a"]}["\x69\x64_\x73\x65ll\x65r"])>0)return intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fs\x79\x6a\x6f\x76vc"]}["id_\x73\x65\x6c\x6c\x65r"]);return 0;}public static function getObjectOwnerInfo($table,$objid,$id_seller=null){${"\x47\x4c\x4fB\x41LS"}["\x65e\x6e\x74\x78\x62\x71\x6f"]="e\x61\x63e\x73\x73";${"\x47\x4cOB\x41L\x53"}["\x68j\x63\x62\x73ruu\x62"]="\x65ac\x65\x73\x73";${${"G\x4cO\x42\x41L\x53"}["\x65\x65\x6e\x74xb\x71\x6f"]}=self::get_entity_access(${${"\x47\x4cO\x42\x41L\x53"}["w\x6bk\x71\x79\x6bts\x6c"]});if(${${"\x47\x4cO\x42\x41LS"}["\x72\x73\x67u\x63k\x7a\x62m\x75\x78"]}["\x6f\x77n\x65\x72_\x74ab\x6ce\x5f\x74ype"]==self::OWNER_TABLE_SHARED){${"G\x4c\x4f\x42\x41\x4c\x53"}["u\x6fg\x66\x74\x64\x76"]="e\x61\x63\x65ss";$hraliskgee="\x69\x64\x5f\x73\x65l\x6c\x65\x72";$rriydxfl="\x6f\x62ji\x64";return self::getObjectOwnerInfoShared(${${"\x47\x4c\x4f\x42\x41LS"}["\x77\x6b\x6b\x71yk\x74\x73\x6c"]},${$rriydxfl},${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75o\x67\x66\x74\x64\x76"]}["owner_\x78\x72\x5ft\x61bl\x65"],${$hraliskgee});}elseif(${${"G\x4cO\x42\x41\x4c\x53"}["\x68\x6ac\x62sr\x75\x75\x62"]}["\x6fw\x6e\x65r_\x74abl\x65\x5f\x74\x79p\x65"]==AgileSellerManager::OWNER_TABLE_DEFINED){$rornoifxgocx="e\x61ce\x73\x73";return self::getObjectOwnerInfoDefined(${${"\x47\x4c\x4fBAL\x53"}["\x77k\x6b\x71\x79k\x74\x73\x6c"]},${${"\x47L\x4f\x42A\x4cS"}["di\x62s\x64f\x72\x74"]},${$rornoifxgocx}["owner_\x78r\x5f\x74a\x62\x6c\x65"],${${"\x47\x4cO\x42A\x4cS"}["rd\x66\x75\x6f\x6b\x6a\x6d"]});}return;}private static function assignObjectOwnerDefined($table,$xr_table,$id,$id_seller){$dwhuhvjsjkln="i\x64_fi\x65\x6c\x64\x5f\x6e\x61me";$pqthdhwi="i\x64\x5f\x66\x69\x65\x6cd_\x6e\x61\x6de";${"G\x4c\x4f\x42AL\x53"}["h\x70h\x66gll\x6fn\x64w"]="o\x77\x6ee\x72\x49n\x66\x6f";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73liv\x6fhp"]="\x69\x64";$ehbnegzjj="o\x77ne\x72I\x6e\x66\x6f";${"\x47\x4c\x4f\x42ALS"}["\x78\x66np\x6e\x65i"]="\x74a\x62\x6ce";global$cookie;if(intval(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x61\x71\x70\x6d\x72hf\x72"]})<=0)return;if(${${"\x47LO\x42\x41L\x53"}["\x77k\x6b\x71\x79\x6bt\x73\x6c"]}=="\x6frd\x65\x72\x73")${${"\x47\x4c\x4fB\x41\x4cS"}["\x77k\x6bq\x79\x6b\x74\x73\x6c"]}="order";${${"\x47L\x4f\x42A\x4c\x53"}["a\x64\x64zo\x68p\x78on\x63n"]}=self::getObjectOwnerInfoDefined(${${"G\x4c\x4f\x42ALS"}["\x77k\x6b\x71\x79\x6b\x74\x73l"]},${${"\x47L\x4f\x42A\x4cS"}["\x73\x6c\x69\x76\x6f\x68p"]},${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x68\x6cv\x74\x79\x6b\x75\x70"]},${${"G\x4cO\x42A\x4c\x53"}["r\x64f\x75\x6f\x6b\x6a\x6d"]});${$dwhuhvjsjkln}="\x69d\x5f".${${"G\x4c\x4f\x42AL\x53"}["\x78\x66\x6e\x70\x6eei"]};if(isset(${$ehbnegzjj}[${$pqthdhwi}])AND intval(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68\x70\x68\x66\x67\x6c\x6c\x6f\x6ed\x77"]}[${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x69o\x7a\x72\x62\x62\x65"]}])>0){$jtusgcwkon="t\x61\x62\x6ce";$knerygn="\x69d";$vbswzjhfreb="\x69\x64\x5f\x66i\x65\x6cd\x5f\x6e\x61\x6d\x65";$bimkgaxdfx="i\x64\x5fs\x65\x6cl\x65\x72";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x67\x6al\x67fc\x70j"]}="U\x50DATE "._DB_PREFIX_.${$jtusgcwkon}."\x5fowner SET\x20id\x5fo\x77ne\x72\x3d".${$bimkgaxdfx}."\x20\x57HE\x52\x45\x20".${$vbswzjhfreb}."=".intval(${$knerygn});}else{${"G\x4c\x4fBA\x4c\x53"}["\x67\x75\x72\x64\x6a\x62d"]="\x73\x71\x6c";$opghmjzxd="\x74\x61\x62l\x65";${"G\x4cO\x42\x41\x4cS"}["p\x68\x77m\x6e\x77l\x78"]="\x74\x61ble";${${"\x47\x4cO\x42\x41LS"}["\x67\x75\x72\x64j\x62\x64"]}="I\x4eSE\x52\x54 INTO "._DB_PREFIX_.${$opghmjzxd}."_\x6f\x77\x6eer (i\x64_".${${"\x47\x4cO\x42\x41L\x53"}["\x70\x68\x77mn\x77\x6c\x78"]}.",\x69d_\x6fw\x6eer,date_\x61\x64\x64) \x56ALUE\x53(".intval(${${"\x47L\x4f\x42AL\x53"}["l\x61\x71\x70\x6d\x72\x68fr"]}).",".intval(${${"G\x4c\x4fBA\x4c\x53"}["r\x64fuok\x6a\x6d"]}).",'".date("Y-\x6d-\x64 H:i:s")."')";}try{Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["g\x6a\x6cg\x66\x63pj"]});}catch(Exception$e){die($e->getMessage());}}private static function assignObjectOwnerShared($table,$xr_table,$id,$id_seller){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7a\x68c\x75\x66\x71\x73"]="\x69\x64";global$cookie;$dwumyrucrh="\x78\x72\x5ft\x61ble";$wichqdzqs="\x6fw\x6eer\x49\x6e\x66o";if(intval(${${"G\x4cO\x42\x41\x4c\x53"}["\x6c\x61\x71\x70m\x72\x68\x66r"]})<=0)return;${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6cu\x66n\x74\x6d\x6c\x6a\x62"]="o\x77\x6e\x65\x72I\x6e\x66\x6f";$hrjyknptlqq="\x69\x64\x5fs\x65ll\x65\x72";$nffmrce="\x74\x61b\x6c\x65";${$wichqdzqs}=self::getObjectOwnerInfoShared(${$nffmrce},${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7a\x68cu\x66q\x73"]},${$dwumyrucrh},${$hrjyknptlqq});if(isset(${${"\x47L\x4f\x42\x41\x4cS"}["\x6c\x75\x66\x6e\x74\x6dljb"]}["\x69\x64\x5f\x6fb\x6a\x65ct"])AND intval(${${"G\x4cO\x42ALS"}["\x61\x64d\x7a\x6f\x68\x70x\x6f\x6e\x63n"]}["id\x5fobjec\x74"])>0){$fpqmsnzav="\x69d_\x73\x65\x6c\x6cer";${"G\x4cOBA\x4c\x53"}["\x78wx\x75\x66tm\x75\x62b"]="\x69\x64";${${"\x47L\x4f\x42ALS"}["\x67\x6a\x6cg\x66c\x70\x6a"]}="U\x50\x44\x41T\x45 "._DB_PREFIX_."\x6f\x62\x6a\x65\x63\x74\x5fo\x77ne\x72\x20\x53E\x54 i\x64_\x6fw\x6ee\x72=".${$fpqmsnzav}."\x20\x57H\x45RE\x20\x20`\x65\x6e\x74it\x79`=\x27".${${"\x47\x4c\x4fBA\x4c\x53"}["w\x6b\x6b\x71\x79\x6b\x74s\x6c"]}."' AND\x20i\x64\x5f\x6fb\x6a\x65\x63t=".intval(${${"\x47LOB\x41\x4c\x53"}["xw\x78uf\x74\x6d\x75\x62b"]});}else{$xgfqboo="\x74ab\x6c\x65";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6a\x6cg\x66\x63\x70j"]}="INS\x45RT I\x4e\x54\x4f "._DB_PREFIX_."\x6f\x62je\x63t_\x6f\x77\x6ee\x72\x20(i\x64\x5f\x6f\x62jec\x74,`\x65n\x74\x69t\x79`\x20,i\x64_\x6fw\x6eer,\x64\x61\x74e\x5fa\x64\x64, \x64atet\x69\x6d\x651)\x20VA\x4c\x55ES(".intval(${${"G\x4c\x4fBA\x4c\x53"}["\x6ca\x71\x70\x6d\x72\x68\x66r"]}).",'".${$xgfqboo}."\x27,".intval(${${"\x47\x4c\x4f\x42ALS"}["\x72\x64\x66uo\x6bj\x6d"]}).",\x27".date("Y-\x6d-\x64\x20H:\x69:\x73")."',\x27".date("\x59-m-d \x48:\x69:\x73")."')";}try{Db::getInstance()->Execute(${${"\x47\x4cO\x42\x41L\x53"}["\x67j\x6c\x67\x66\x63\x70j"]});}catch(Exception$e){die($e->getMessage());}}private static function getObjectOwnerInfoDefined($table,$id,$xr_table,$id_seller=null){if(intval(${${"\x47\x4c\x4f\x42ALS"}["l\x61\x71p\x6dr\x68\x66\x72"]})<=0)return;${"G\x4c\x4fB\x41\x4cS"}["\x61b\x79x\x68e\x75\x6f\x74\x70"]="\x73\x71l";$fkghklxykc="id_sel\x6c\x65\x72";${"\x47L\x4f\x42AL\x53"}["\x65\x73\x6ajf\x76g\x70d"]="en\x74\x69\x74\x79\x5f\x6d\x75\x6c\x74\x69\x6f\x77ne\x72";${"\x47\x4c\x4f\x42ALS"}["\x78\x6fn\x61ea\x67c\x65"]="\x78\x72\x5f\x74a\x62\x6ce";if(${${"G\x4c\x4f\x42A\x4c\x53"}["\x77k\x6b\x71\x79\x6b\x74sl"]}=="orde\x72s")${${"\x47\x4c\x4fBAL\x53"}["\x77\x6bk\x71\x79k\x74sl"]}="\x6f\x72\x64\x65r";$vkyvgh="i\x64\x5f\x73\x65\x6cle\x72";if(empty(${${"\x47\x4c\x4fBA\x4c\x53"}["\x78\x6f\x6eae\x61\x67c\x65"]})){$qptlfej="\x74able";${"\x47LOB\x41L\x53"}["\x72\x75\x6d\x76\x75e\x67\x68\x79"]="\x74\x61bl\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["l\x64m\x6a\x68\x6c\x79l\x79\x65h"]="ta\x62l\x65";${${"\x47LOB\x41\x4cS"}["g\x6a\x6cg\x66\x63p\x6a"]}="\x53\x45\x4cEC\x54\x20* FROM\x20"._DB_PREFIX_.(${${"G\x4c\x4fB\x41L\x53"}["w\x6bkqy\x6b\x74\x73\x6c"]}=="\x6f\x72der\x73"?"or\x64\x65\x72":${$qptlfej})."\x5f\x6f\x77ne\x72 W\x48\x45R\x45\x20id\x5f".(${${"\x47\x4c\x4f\x42ALS"}["ru\x6dv\x75\x65g\x68\x79"]}=="o\x72\x64\x65\x72s"?"order":${${"\x47\x4cOB\x41\x4c\x53"}["\x6c\x64mjh\x6c\x79lye\x68"]})."\x3d".intval(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6c\x61q\x70mr\x68fr"]});}else{$eeombnn="\x74\x61\x62\x6c\x65";${"\x47L\x4f\x42\x41\x4c\x53"}["\x7a\x70\x68y\x70\x72x\x65\x6a\x70"]="tab\x6c\x65";$msnmkcyp="xr_\x74\x61\x62\x6ce";$zjtprzslhiy="\x78\x72\x5f\x74\x61\x62\x6ce";${"GL\x4fBA\x4cS"}["\x74c\x79\x6b\x6dkrh\x62"]="\x69d";${"G\x4c\x4f\x42A\x4c\x53"}["\x62mmfxe\x6a"]="\x78\x72_\x74\x61\x62l\x65";${${"\x47LOB\x41\x4c\x53"}["\x67\x6a\x6c\x67\x66c\x70\x6a"]}="\n\t\t\t\t\x53\x45L\x45C\x54 \x61xo\x2e* \n\t\t\t\t\x46\x52\x4fM "._DB_PREFIX_.${$eeombnn}." \x61\x20\n\t\t\t\t\t\x4c\x45F\x54 \x4a\x4f\x49\x4e\x20"._DB_PREFIX_.${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x6d\x6df\x78ej"]}."_\x6fwn\x65r\x20axo O\x4e \x61\x2ei\x64_".${$zjtprzslhiy}."\x3da\x78\x6f\x2e\x69\x64\x5f".${$msnmkcyp}."\n\t\t\t\t\x57\x48\x45\x52\x45\x20\x61\x2e\x69\x64\x5f".${${"G\x4cOB\x41\x4cS"}["\x7a\x70h\x79\x70\x72x\x65\x6ap"]}."\x3d".intval(${${"GL\x4fB\x41\x4c\x53"}["t\x63\x79\x6bm\x6br\x68\x62"]});}if(intval(${$vkyvgh})>0 AND in_array(${${"G\x4c\x4f\x42\x41L\x53"}["\x77\x6b\x6b\x71\x79\x6b\x74s\x6c"]},self::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["e\x73\x6a\x6afvgp\x64"]}))${${"GL\x4f\x42AL\x53"}["\x61\x62yxh\x65u\x6ftp"]}.=" A\x4e\x44\x20(id\x5f\x6fw\x6e\x65\x72=\x30\x20\x4f\x52 \x69\x64\x5f\x4fw\x6e\x65r\x3d".intval(${$fkghklxykc}).")\x20\x4fR\x44\x45\x52 \x42\x59 \x69\x64\x5fo\x77\x6ee\x72\x20\x44\x45S\x43";try{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x79\x65kn\x75\x78\x64\x70\x6doj"]="\x73q\x6c";${${"\x47\x4c\x4f\x42A\x4c\x53"}["b\x71\x72b\x63x\x76\x6d\x6f\x6e"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64\x79\x65\x6b\x6eu\x78d\x70\x6d\x6f\x6a"]});}catch(Exception$e){die($e->getMessage());}return${${"\x47L\x4f\x42A\x4c\x53"}["b\x71\x72\x62\x63\x78\x76m\x6f\x6e"]};}private static function getObjectOwnerInfoShared($table,$id,$xr_table,$id_seller=null){${"\x47L\x4f\x42\x41\x4c\x53"}["\x65wka\x6fe"]="i\x64";$efwcdhi="id\x5f\x73e\x6c\x6c\x65\x72";if(intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65\x77\x6b\x61\x6f\x65"]})<=0)return;$vnbtjhe="\x74\x61\x62\x6c\x65";${"\x47L\x4f\x42\x41L\x53"}["\x62\x6b\x77\x70\x78lb\x62zp"]="i\x64\x5f\x73\x65l\x6c\x65\x72";$nwonljp="\x73ql";if(empty(${${"\x47\x4c\x4fBA\x4cS"}["\x68h\x6c\x76t\x79\x6b\x75p"]})){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68tfgkci"]="s\x71l";${"\x47\x4cO\x42\x41L\x53"}["n\x69f\x67\x62\x67z\x72\x66"]="t\x61\x62\x6ce";${"G\x4c\x4f\x42\x41L\x53"}["\x67\x6eq\x66l\x64"]="\x69\x64";${${"G\x4c\x4f\x42AL\x53"}["\x68\x74f\x67k\x63i"]}="S\x45L\x45CT *\x20\x46\x52OM "._DB_PREFIX_."\x6f\x62je\x63\x74_owner W\x48\x45RE\x20`\x65\x6eti\x74y\x60\x3d'".${${"\x47\x4cOBA\x4c\x53"}["nifg\x62\x67\x7a\x72\x66"]}."\x27 \x41\x4e\x44 \x69\x64_obj\x65ct\x3d".intval(${${"\x47L\x4f\x42\x41\x4cS"}["g\x6eqf\x6c\x64"]});}else{$nyjvkia="ta\x62\x6c\x65";${"G\x4cO\x42\x41\x4c\x53"}["\x6bu\x72\x69\x62p\x6c"]="\x74\x61ble";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67j\x6cgf\x63\x70\x6a"]}="\n\t\t\t\tSELEC\x54 \x61\x78o\x2e* \n\t\t\t\tFROM "._DB_PREFIX_.${$nyjvkia}."\x20\x61\x20\n\t\t\t\t\t\n\t\t\t\t\tLEFT\x20\x4aO\x49\x4e "._DB_PREFIX_."\x6fbje\x63t_o\x77\x6e\x65\x72 a\x78\x6f \x4f\x4e\x20(\x61.id_".${${"\x47\x4cO\x42\x41\x4c\x53"}["hh\x6c\x76\x74yku\x70"]}."=\x61\x78\x6f\x2eid_\x6f\x62j\x65c\x74 \x41\x4eD\x20a\x78o\x2e\x60e\x6etit\x79`=\x27".${${"G\x4cO\x42A\x4c\x53"}["h\x68l\x76\x74y\x6bu\x70"]}."')\n\t\t\t\tW\x48ER\x45 \x61\x2e\x69\x64_".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6bu\x72\x69\x62\x70l"]}."=".intval(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x61q\x70\x6dr\x68\x66r"]});}if(intval(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x6b\x77\x70x\x6c\x62b\x7ap"]})>0 AND in_array(${$vnbtjhe},self::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7aq\x6d\x6cl\x6d\x70\x6b\x62\x74\x7a"]}))${$nwonljp}.="\x20AND (\x69d\x5f\x6f\x77ne\x72\x3d\x30\x20\x4f\x52\x20\x69\x64_\x4f\x77\x6e\x65\x72=".intval(${$efwcdhi}).") \x4f\x52D\x45\x52\x20BY \x69d_o\x77ner DE\x53\x43";${${"\x47\x4cO\x42\x41\x4c\x53"}["b\x71\x72\x62c\x78\x76\x6d\x6f\x6e"]}=Db::getINstance()->getRow(${${"\x47\x4cOBA\x4c\x53"}["g\x6a\x6c\x67\x66\x63pj"]});return${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62\x71r\x62\x63\x78\x76mon"]};}public static function hasOwnership($table,$objid){${"\x47\x4cO\x42\x41L\x53"}["\x70\x73\x63\x6e\x79\x78\x69\x75\x6d"]="\x69\x64\x5f\x73\x65\x6c\x6c\x65\x72";${"G\x4cOB\x41\x4c\x53"}["\x68t\x71\x64\x67\x71h\x77\x69"]="o\x77\x6e\x65\x72\x69n\x66\x6f";$esowcxkasa="\x69\x64\x5fs\x65\x6c\x6c\x65r";$jdnepbaa="\x6fw\x6e\x65\x72\x69nf\x6f";$uahwzbl="t\x61\x62\x6c\x65";$aufgcnoqo="\x6fwn\x65\x72i\x6ef\x6f";global$cookie;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x72d\x66\x75\x6fkj\x6d"]}=$cookie->id_employee;if($cookie->id_employee<=0){$yhyunhlmqgq="\x71\x75er\x79";${${"G\x4c\x4f\x42\x41\x4c\x53"}["d\x66\x76q\x62\x70\x61\x77e"]}="SE\x4c\x45\x43T \x69d_s\x65\x6c\x6ce\x72 F\x52O\x4d\x20"._DB_PREFIX_."\x73ell\x65\x72\x69\x6ef\x6f \x57H\x45\x52\x45\x20id_c\x75\x73\x74\x6fmer=".intval($cookie->id_customer);${${"\x47\x4cO\x42\x41\x4c\x53"}["r\x64\x66\x75\x6f\x6bj\x6d"]}=intval(Db::getInstance()->getValue(${$yhyunhlmqgq}));}${$jdnepbaa}=self::getObjectOwnerInfo(${$uahwzbl},${${"\x47\x4c\x4fB\x41L\x53"}["d\x69\x62\x73d\x66r\x74"]},${${"\x47L\x4f\x42\x41\x4cS"}["p\x73\x63\x6e\x79\x78\x69u\x6d"]});if(!isset(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["h\x74\x71d\x67q\x68wi"]})OR!isset(${$aufgcnoqo}["\x69\x64_\x6fwn\x65\x72"]))return false;if(intval(${${"\x47L\x4f\x42\x41\x4cS"}["g\x73t\x73\x6c\x78\x67\x6c"]}["id\x5fo\x77ner"])!=${$esowcxkasa})return false;return true;}public static function appendMailTemplateVars($templateVars,$id_lang){$pqlspjy="\x74\x65m\x70la\x74\x65\x56\x61\x72s";${"\x47\x4c\x4fBALS"}["d\x6cv\x79dx\x73\x69\x79l"]="\x74\x65\x6d\x70\x6c\x61\x74\x65Va\x72\x73";$lfrrskyogsv="\x74\x65\x6d\x70\x6c\x61t\x65\x56\x61\x72\x73";$kxmpglknq="\x74e\x6dp\x6c\x61\x74\x65\x56\x61\x72\x73";${"\x47\x4cO\x42ALS"}["\x62lwnk\x78o\x65"]="\x69\x64\x5f\x6f\x72\x64\x65\x72";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x68b\x68d\x78\x6bk"]="te\x6dplat\x65\x56\x61r\x73";${"\x47\x4c\x4fB\x41\x4cS"}["wv\x79\x71f\x79\x63w"]="i\x64\x5f\x6ca\x6eg";${"G\x4c\x4f\x42A\x4c\x53"}["\x6f\x72wlrs\x79\x69"]="\x74\x65m\x70\x6cate\x56a\x72\x73";include_once(_PS_ROOT_DIR_."/mo\x64ules/a\x67\x69\x6ce\x6du\x6cti\x70\x6ce\x73\x65lle\x72/S\x65\x6c\x6ce\x72\x49nf\x6f\x2eph\x70");$dqntipmao="\x69d_\x73\x65l\x6c\x65\x72info";$zjjbjpiwrc="i\x64_\x6c\x61\x6e\x67";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x6e\x76\x62\x70\x74s"]="\x69d\x5f\x6f\x72d\x65\x72";if(!isset(${$lfrrskyogsv}["{o\x72d\x65\x72_\x6eame}"]))return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x6f\x65pq\x73ks\x6d"]};${"GL\x4f\x42\x41\x4cS"}["\x71c\x73w\x69e"]="\x69d_\x73\x65l\x6c\x65r";${${"\x47L\x4f\x42A\x4c\x53"}["b\x6c\x77nkxo\x65"]}=AgileSellerManager::get_order_id_from_maildata(${${"\x47\x4cO\x42\x41LS"}["p\x6f\x65p\x71s\x6b\x73\x6d"]});if(Module::isInstalled("ag\x69l\x65s\x65\x6c\x6ce\x72\x73\x68i\x70p\x69\x6e\x67")){$ysiennjimk="i\x64\x5f\x63\x61\x72\x74";$xmowlnet="\x69d\x5ford\x65r";$llaqehdf="s\x68\x69\x70\x70\x69n\x67\x5f\x69\x6ef\x6f";include_once(_PS_ROOT_DIR_."/mod\x75les/\x61\x67i\x6cese\x6c\x6cer\x73\x68\x69pp\x69n\x67/a\x67\x69les\x65l\x6c\x65r\x73\x68\x69p\x70\x69n\x67\x2e\x70\x68\x70");${"\x47L\x4fB\x41\x4cS"}["\x6d\x71d\x65f\x69\x6epo\x6f"]="th\x65\x43\x61\x72\x74";${"GL\x4fBA\x4c\x53"}["u\x70u\x6ddqwm"]="i\x64\x5f\x63\x61r\x74";${${"\x47\x4c\x4f\x42\x41L\x53"}["ib\x73\x6e\x74\x66mo\x72\x6a\x67"]}=new AgileSellerShipping();${$ysiennjimk}=Order::getCartIdStatic(${$xmowlnet});$pryfmmzsettn="\x73h\x69ppi\x6e\x67_i\x6e\x66\x6f";$qouuczk="\x69\x64_\x63ar\x74";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6d\x71\x64\x65\x66i\x6e\x70\x6f\x6f"]}=new Cart(${${"\x47\x4c\x4fBA\x4c\x53"}["\x75pum\x64qw\x6d"]});${$llaqehdf}=$module->displayInfoByCart(${$qouuczk});${${"\x47\x4c\x4f\x42\x41LS"}["\x70\x6fe\x70\x71s\x6b\x73\x6d"]}["{\x63a\x72ri\x65r}"]=${$pryfmmzsettn};${${"\x47\x4cO\x42A\x4c\x53"}["\x70\x6fe\x70\x71\x73\x6b\x73m"]}["{t\x6f\x74\x61\x6c\x5fshi\x70\x70\x69\x6e\x67}"]=Tools::displayPrice($theCart->getOrderTotal(true,Cart::ONLY_SHIPPING));${${"\x47\x4cO\x42\x41\x4c\x53"}["p\x6f\x65\x70\x71s\x6b\x73m"]}["{to\x74\x61l\x5fpa\x69d}"]=Tools::displayPrice($theCart->getOrderTotal(true,Cart::BOTH));}${${"\x47L\x4f\x42A\x4cS"}["\x71\x63s\x77i\x65"]}=intval(self::getObjectOwnerID("\x6f\x72\x64\x65r",${${"\x47\x4cOBAL\x53"}["\x71\x6ev\x62\x70\x74s"]}));${$dqntipmao}=SellerInfo::getIdBSellerId(${${"\x47\x4cO\x42AL\x53"}["r\x64\x66\x75\x6f\x6bjm"]});${${"\x47\x4cO\x42\x41\x4cS"}["\x79\x78\x6aw\x79yc\x71\x6f\x78"]}=new SellerInfo(${${"G\x4c\x4f\x42ALS"}["y\x74\x67\x76\x61\x6d\x6e\x77"]},${${"GL\x4f\x42\x41LS"}["w\x76\x79\x71f\x79\x63w"]});if(!Validate::isLoadedObject(${${"\x47\x4c\x4fB\x41\x4cS"}["\x79x\x6aw\x79y\x63\x71o\x78"]}))return${${"GL\x4f\x42\x41\x4c\x53"}["\x6f\x72\x77\x6c\x72syi"]};${$pqlspjy}["{s\x65lle\x72\x5f\x6co\x67o}"]=Tools::getShopDomainSsl(true).__PS_BASE_URI__."img/a\x73/".$sellerinfo->id."\x2ejp\x67";${${"\x47LO\x42\x41\x4c\x53"}["\x6bhb\x68d\x78\x6b\x6b"]}["{\x73el\x6c\x65\x72\x5fad\x64ress}"]=$sellerinfo->fulladdress(${$zjjbjpiwrc});${${"G\x4c\x4f\x42\x41\x4c\x53"}["d\x6cv\x79\x64\x78siy\x6c"]}["{s\x65ller_\x6ea\x6de}"]=$sellerinfo->company;return${$kxmpglknq};}public static function getConfFromSellerInfo($id_order){${"GL\x4fB\x41\x4c\x53"}["co\x71fnp"]="\x63\x6f\x6e\x66";$fomufk="c\x6f\x6e\x66";$goamefqfhnte="c\x6f\x6e\x66";$gnkqcl="i\x64_or\x64\x65\x72";${"\x47\x4cOB\x41L\x53"}["ng\x62\x73e\x71\x76\x6b\x6f\x63\x67\x61"]="s\x65l\x6cer\x69\x6efo";global$cookie;$hsusrctcwc="\x69\x64_s\x65\x6c\x6ce\x72";$kwbaar="i\x64\x5f\x73\x65l\x6ce\x72\x69\x6e\x66o";$nsstdifvkv="\x63\x6f\x6e\x66";${"G\x4c\x4f\x42ALS"}["v\x72\x6b\x68a\x79"]="\x63o\x6e\x66";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x63\x77\x76\x6cnjf\x6a\x69\x61m"]="\x63o\x6e\x66";${"G\x4cOB\x41\x4cS"}["\x78\x62\x62\x75\x66ry"]="c\x6f\x6ef";${${"\x47\x4cO\x42\x41LS"}["\x63\x6f\x71f\x6ep"]}=array();${"\x47\x4c\x4f\x42\x41\x4c\x53"}["fr\x66\x73\x72\x62\x77"]="\x63\x6f\x6e\x66";${$hsusrctcwc}=AgileSellerManager::getObjectOwnerID("ord\x65r",${$gnkqcl});if(${${"G\x4c\x4fB\x41\x4c\x53"}["rdf\x75\x6fk\x6am"]}<=0)return${$nsstdifvkv};${$kwbaar}=self::getIdBSellerId(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x64\x66\x75\x6f\x6b\x6am"]});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x67\x62s\x65\x71\x76\x6b\x6f\x63ga"]}=new SellerInfo(${${"\x47\x4c\x4f\x42A\x4c\x53"}["y\x74\x67\x76\x61\x6dnw"]},$cookie->id_lang);if(!Validate::isLoadedObject(${${"\x47L\x4f\x42\x41LS"}["\x79\x78\x6aw\x79\x79\x63q\x6fx"]}))return${${"GL\x4f\x42A\x4cS"}["f\x72\x66\x73\x72\x62\x77"]};${${"\x47LO\x42\x41\x4cS"}["\x6d\x6bm\x74gc\x67\x62\x76\x79d"]}["P\x53_\x53\x48OP_NA\x4dE\x5fUP\x50E\x52"]=strtoupper($sellerinfo->company);${${"\x47\x4c\x4f\x42A\x4c\x53"}["m\x6b\x6d\x74\x67\x63\x67\x62v\x79d"]}["\x50S\x5f\x53\x48\x4f\x50\x5fA\x44\x44R\x31"]=$sellerinfo->address1;${$fomufk}["P\x53_\x53HO\x50_A\x44\x44R2"]=$sellerinfo->address2;${$goamefqfhnte}["\x50\x53\x5f\x53HO\x50_CI\x54\x59"]=$sellerinfo->city;${${"GLO\x42A\x4c\x53"}["\x6d\x6bm\x74\x67\x63\x67b\x76\x79d"]}["\x50\x53_\x53HOP_ST\x41\x54\x45"]="";if($sellerinfo->id_state){${"\x47L\x4f\x42\x41\x4c\x53"}["\x74\x6ch\x6e\x6e\x67\x6b"]="\x63o\x6ef";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64l\x63\x71o\x72\x72\x69\x76"]}=new State($sellerinfo->id_state);${${"\x47\x4c\x4fB\x41L\x53"}["t\x6c\x68nn\x67\x6b"]}["P\x53\x5f\x53\x48\x4fP\x5f\x53\x54AT\x45"]=$state->name;}${"\x47L\x4f\x42\x41L\x53"}["a\x75\x66\x76bk\x62a\x61"]="c\x6fnf";${${"GLOB\x41LS"}["\x61\x75\x66\x76\x62\x6bba\x61"]}["PS_SH\x4f\x50\x5f\x43O\x55\x4e\x54RY"]="";if($sellerinfo->id_country){$wijhkzfb="\x63ount\x72\x79";${$wijhkzfb}=new Country($sellerinfo->id_country,$cookie->id_lang);${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x6b\x6d\x74gcg\x62\x76\x79\x64"]}["PS_S\x48\x4fP\x5f\x43O\x55\x4e\x54RY"]=$country->name;}${${"GL\x4fB\x41\x4c\x53"}["\x63w\x76ln\x6a\x66\x6aia\x6d"]}["\x50\x53\x5fSH\x4f\x50_P\x48ON\x45"]=$sellerinfo->phone;${${"G\x4cO\x42\x41L\x53"}["v\x72kha\x79"]}["\x50\x53\x5fSHOP_C\x4fDE"]=$sellerinfo->postcode;return${${"\x47L\x4fBAL\x53"}["\x78\x62\x62u\x66\x72\x79"]};}public static function checkEmptySellerInfoRecords(){${"\x47\x4c\x4f\x42\x41L\x53"}["t\x66\x66u\x6a\x7al"]="s\x71l";${"\x47\x4c\x4f\x42A\x4cS"}["\x79i\x72c\x6e\x63"]="\x73\x71\x6c";${${"\x47LOB\x41\x4cS"}["\x79\x69\x72\x63n\x63"]}="\x49\x4e\x53\x45\x52\x54\x20IN\x54O\x20"._DB_PREFIX_."sell\x65\x72i\x6efo (\x69d\x5fse\x6c\x6c\x65r,\x69\x64\x5fc\x6funt\x72y,\x69d_s\x74at\x65,\x64\x61t\x65\x5f\x61dd,d\x61t\x65\x5f\x75\x70\x64) \n\x20\x20\x20 \x20 \x20  \x20\x20  \x20\x20 S\x45L\x45\x43\x54 \x69\x64\x5femplo\x79ee\x20AS\x20i\x64\x5fsel\x6ce\x72,".Configuration::get("\x50S\x5fCOU\x4e\x54R\x59_D\x45\x46AULT")."\x20A\x53 \x69d_c\x6f\x75\x6e\x74\x72\x79,0\x20\x41\x53\x20i\x64_s\x74\x61t\x65, \x43\x55R\x44\x41\x54E() \x41\x53 \x64ate_ad\x64,\x20\x43\x55R\x44\x41T\x45() AS \x64ate\x5f\x75p\x64\n\x20\x20 \x20  \x20 \x20\x20   \x20  \x46R\x4f\x4d "._DB_PREFIX_."\x65m\x70l\x6fyee e\n\x20\x20\x20      \x20   \x20   \x20  \x4cEF\x54\x20\x4aOIN "._DB_PREFIX_."s\x65\x6cl\x65\x72i\x6ef\x6f\x20\x73\x20\x4f\x4e\x20(\x65.id\x5f\x65\x6dpl\x6fy\x65\x65=\x73\x2eid\x5fs\x65ll\x65\x72)\n   \x20\x20 \x20\x20  \x20\x20 \x20\x20\x20WHERE IFN\x55L\x4c(s.\x69d_\x73e\x6cler,0)\x3d0 A\x4e\x44 \x69\x64\x5f\x70ro\x66ile=".intval(Configuration::get("A\x47\x49L\x45_\x4d\x53_\x50\x52\x4fF\x49\x4cE_ID"))."\n \x20\x20 \x20   \x20   \x20 \x20 \x4fRDER\x20B\x59 i\x64_\x65\x6d\x70\x6coyee";Db::getInstance()->Execute(${${"\x47L\x4f\x42\x41L\x53"}["t\x66\x66\x75\x6az\x6c"]});}public static function getAcitveProductsListed($id_seller){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x6a\x6d\x64\x74u\x79d\x61\x77"]="\x69d\x5f\x73e\x6c\x6c\x65\x72";if(!intval(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68j\x6d\x64t\x75y\x64\x61\x77"]}))return 0;${${"\x47\x4c\x4f\x42\x41\x4cS"}["g\x6alg\x66\x63p\x6a"]}="S\x45LE\x43\x54 co\x75n\x74(p.i\x64_\x70\x72\x6f\x64\x75\x63t) a\x73 \x6eum\n\x20\x20\x20\x20 \x20 \x20\x20  \x20FR\x4f\x4d "._DB_PREFIX_."p\x72oduc\x74\x20\x70\x20\n\x20  \x20 \x20\x20 \x20  \x20\x20 \x20\x20LEF\x54 J\x4f\x49N "._DB_PREFIX_."produ\x63t_\x6f\x77n\x65\x72\x20po\x20\x4f\x4e\x20\x70.\x69\x64\x5fp\x72\x6fdu\x63\x74=\x70o\x2eid\x5fp\x72oduc\x74 \n \x20\x20 \x20 \x20 \x20   WHE\x52E\x20id_\x6fw\x6ee\x72=".${${"G\x4c\x4f\x42\x41LS"}["r\x64f\x75\x6f\x6bjm"]}."\n\x20\x20\x20  \x20\x20 \x20\x20   \x20  \x41ND \x70\x2ea\x63\x74\x69\x76\x65=\x31\n \x20  \x20\x20   \x20\x20\x20";return intval(Db::getInstance()->getValue(${${"\x47L\x4fB\x41\x4c\x53"}["\x67\x6al\x67\x66\x63\x70j"]}));}public static function disableSellerProducts($id_seller){$sjpkvacuyrs="s\x71l\x34\x63\x69d\x73";${"\x47\x4cO\x42AL\x53"}["s\x79\x77\x6d\x70q\x65\x64"]="\x69\x64\x5f\x73\x65\x6c\x6c\x65\x72";$xdxibvqg="s\x71\x6c\x34\x70i\x64s";global$currentIndex,$cookie;${"\x47L\x4fBA\x4cS"}["ld\x6fw\x66yn\x69"]="s\x71l4p\x69d\x73";if(intval(${${"G\x4cO\x42\x41\x4c\x53"}["sy\x77\x6d\x70qed"]})<=0)return;$bfaiotjvwpm="\x69\x64\x5f\x73\x65\x6c\x6c\x65r";$jldjtmun="\x61\x63t\x69\x6fn\x5fr\x65q\x75\x69re\x64";${"\x47\x4cO\x42\x41\x4c\x53"}["\x76jk\x69\x73h\x6a\x6d"]="\x73t\x61t\x75\x73";$wksexrt="\x73\x71l";${${"GLOBA\x4cS"}["\x65\x6c\x68t\x72\x74\x71\x6b\x6e"]}=0;$kkzxqnej="\x61c\x74\x69\x6f\x6e\x5f\x72\x65\x71\x75ire\x64";${${"\x47\x4c\x4f\x42ALS"}["\x67\x6a\x6c\x67fc\x70j"]}="S\x45\x4cEC\x54 \x61c\x74\x69v\x65 F\x52\x4fM "._DB_PREFIX_."e\x6d\x70\x6c\x6f\x79ee\x20WH\x45RE\x20id\x5fe\x6d\x70loye\x65=".intval(${$bfaiotjvwpm});${${"\x47\x4c\x4fB\x41\x4cS"}["\x76j\x6bis\x68j\x6d"]}=Db::getInstance()->getValue(${$wksexrt});$mwobgfuc="\x61\x63\x74i\x6f\x6e_\x72\x65\x71\x75\x69\x72\x65\x64";$ybbwrjmlmgyw="\x73\x71l";${"\x47\x4cO\x42AL\x53"}["\x6c\x63e\x73\x69\x6ev\x78"]="s\x71\x6c";if(!isset(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x7ahv\x6eaha"]}))${$mwobgfuc}=1;else if(intval(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x7ah\x76\x6eah\x61"]})==0)${$kkzxqnej}=1;if(${$jldjtmun}==0)return;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ld\x6fw\x66\x79n\x69"]}="\x53\x45\x4cECT\x20i\x64_pro\x64uc\x74 \x46R\x4f\x4d \x60"._DB_PREFIX_."pro\x64\x75\x63\x74_o\x77ne\x72\x60 \x57\x48ERE i\x64_ow\x6e\x65\x72\x3d".${${"\x47\x4cO\x42\x41L\x53"}["rdf\x75o\x6bjm"]};$idljjsmvhyqp="\x73\x71l";${$ybbwrjmlmgyw}="UPDAT\x45 \x60"._DB_PREFIX_."p\x72\x6fd\x75\x63\x74` \x20S\x45\x54 \x61\x63\x74ive=0 WH\x45R\x45 \x69\x64_p\x72o\x64u\x63t \x49\x4e\x20(".${$xdxibvqg}.")";Db::getInstance()->Execute(${${"G\x4c\x4f\x42\x41LS"}["g\x6alg\x66\x63p\x6a"]});${${"\x47\x4cO\x42\x41L\x53"}["\x67\x6a\x6c\x67\x66\x63p\x6a"]}="U\x50D\x41T\x45 \x60"._DB_PREFIX_."pr\x6fdu\x63t\x5fsh\x6f\x70\x60 \x20\x53ET\x20ac\x74i\x76e\x3d0\x20W\x48\x45R\x45\x20i\x64_p\x72\x6f\x64uct\x20IN (".${${"G\x4c\x4fB\x41LS"}["\x64vne\x63\x76\x69"]}.")";Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6cc\x65\x73\x69n\x76\x78"]});${$sjpkvacuyrs}="\x53ELE\x43\x54 \x69\x64\x5fc\x61te\x67\x6f\x72\x79 \x46\x52\x4fM `"._DB_PREFIX_."\x63at\x65\x67\x6f\x72y_o\x77n\x65\x72`\x20\x57\x48\x45\x52\x45 \x69\x64_\x6f\x77ne\x72=".${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x72\x64\x66u\x6f\x6b\x6am"]};${$idljjsmvhyqp}="U\x50D\x41\x54E\x20\x60"._DB_PREFIX_."cat\x65g\x6f\x72\x79`  SET\x20\x61ctiv\x65=\x30\x20\x57H\x45\x52E\x20\x69d\x5f\x63at\x65gor\x79\x20IN (".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66e\x6at\x7a\x6cf\x70"]}.")";Db::getInstance()->Execute(${${"\x47LOB\x41\x4cS"}["\x67\x6a\x6cg\x66\x63\x70\x6a"]});}public static function deleteSellerInfo($id_seller){$iiuemrgvk="\x69d_se\x6c\x6c\x65\x72";$upujueiqqc="\x73\x71l";${"\x47\x4cO\x42A\x4c\x53"}["\x70\x74kd\x78\x72"]="s\x71l";global$currentIndex,$cookie;if(intval(${$iiuemrgvk})<=0)return;${$upujueiqqc}="DELE\x54E\x20FROM `"._DB_PREFIX_."selle\x72in\x66o\x60 \x57HERE \x69d_s\x65\x6cl\x65\x72\x20\x3d".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["r\x64fu\x6fkjm"]};Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x74kd\x78r"]});}public static function getProducts($id_seller,Context$context,$nb_only=false,$p=1,$n=10,$orderby='',$orderway=''){${"\x47L\x4fB\x41LS"}["ge\x69\x79ukl\x65\x64\x6a"]="s\x65\x6c\x65\x63t";${"\x47\x4c\x4fB\x41L\x53"}["\x79q\x62\x68\x6a\x75\x78\x77r\x67"]="\x66r\x6f\x6d";${${"G\x4cO\x42\x41L\x53"}["g\x65\x69\x79\x75\x6b\x6c\x65d\x6a"]}="\n\t\t \x20\x20 \x53EL\x45\x43T \x64\x69\x73\x74in\x63t p\x2e*, p\x6c\x2ena\x6de,pl\x2el\x69\x6e\x6b_\x72\x65wri\x74\x65,\x20\x63\x6c.na\x6d\x65\x20\x60\x6e\x61\x6d\x65_\x63\x61\x74e\x67\x6fry\x60, \x69\x2e\x60\x69d\x5fi\x6d\x61\x67\x65`, 0\x20A\x53 \x70rice_fi\x6eal, s\x61\x76.\x60q\x75an\x74\x69\x74\x79`\x20a\x73 \x73a\x76_\x71ua\x6e\x74\x69\x74y\n\t\t\x20\x20\x20\x20\x20  \x20,\x70o\x2ea\x70p\x72o\x76\x65d\n\t   \x20 \x20 \x20";$bpvhajxxu="\x77\x68\x65\x72\x65";${"\x47L\x4f\x42\x41L\x53"}["\x76\x71\x72y\x69\x73s\x70fv\x66"]="\x73\x6f\x72t";$isicmqvbbypo="\x73\x65\x6c\x65c\x74";$xrjvsnciv="\x77h\x65\x72\x65";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x71\x62hju\x78\x77r\x67"]}="\n\t\t\t\t\x46\x52\x4f\x4d\x20\x60"._DB_PREFIX_."\x70r\x6fd\x75c\x74\x60 \x70\n\t\t\t\tINN\x45\x52\x20JO\x49N\x20"._DB_PREFIX_."p\x72o\x64uc\x74\x5fsh\x6fp\x20p\x72\x6f\x64\x75c\x74\x5fsh\x6f\x70 O\x4e\x20(\x70\x72\x6fd\x75\x63\x74\x5f\x73\x68o\x70\x2e\x69d\x5fprodu\x63\x74\x20\x3d\x20\x70\x2e\x69d_p\x72o\x64\x75ct\x20AND \x70r\x6f\x64uc\x74_s\x68op.i\x64_\x73h\x6fp \x3d ".Configuration::get("\x50\x53_SH\x4fP_\x44\x45\x46A\x55LT").")\n\t\t\t\t\x4c\x45\x46\x54 J\x4fIN\x20`"._DB_PREFIX_."\x70r\x6f\x64\x75ct_\x6c\x61ng\x60\x20\x70l ON (pl.i\x64\x5fl\x61ng=".$context->language->id."\x20\x41N\x44\x20\x70.`i\x64_p\x72od\x75\x63t` = \x70\x6c\x2e`\x69d_\x70\x72oduct\x60\x20".Shop::addSqlRestrictionOnLang("p\x6c").")\n\t\t\t\t\x4c\x45\x46\x54 J\x4fIN `"._DB_PREFIX_."tax\x5f\x72\x75\x6ce\x60\x20\x74\x72\x20ON\x20(\x70ro\x64u\x63\x74_\x73h\x6fp\x2e`\x69\x64\x5f\x74\x61\x78\x5frul\x65s\x5f\x67\x72\x6fu\x70\x60 \x3d\x20t\x72\x2e`id\x5f\x74\x61\x78\x5fr\x75\x6c\x65\x73_g\x72\x6fup`\n\t\t\x20\t\t  A\x4eD t\x72.\x60i\x64\x5f\x63\x6f\x75ntr\x79`\x20\x3d ".(int)$context->country->id."\n\t\t\x20\t\t\x20 \x41\x4eD\x20t\x72\x2e\x60\x69d\x5fsta\x74\x65\x60 = \x30)\n\t\x20\x20\t\t\x20\t\x4cEFT\x20JOI\x4e\x20\x60"._DB_PREFIX_."\x74ax\x60\x20\x74\x20ON\x20(t.\x60i\x64\x5ft\x61\x78\x60\x20\x3d tr\x2e`\x69\x64_t\x61x\x60)\n\t\t\t\tL\x45FT \x4aO\x49N\x20\x60"._DB_PREFIX_."m\x61n\x75f\x61cturer`\x20m\x20ON\x20(\x6d\x2e\x60id\x5f\x6d\x61\x6eu\x66\x61c\x74\x75\x72er\x60 \x3d \x70\x2e`id_man\x75fact\x75\x72er`)\n\t\t\t\tLEFT JOIN\x20`"._DB_PREFIX_."su\x70p\x6cie\x72\x60 \x73\x20ON\x20(\x73\x2e\x60\x69\x64\x5f\x73\x75pp\x6c\x69\x65\x72` \x3d \x70.\x60i\x64\x5fs\x75\x70p\x6cier\x60)\n\t\t\t\x4cEFT\x20\x4a\x4f\x49N \x60"._DB_PREFIX_."\x69m\x61ge`\x20i ON (i\x2e\x60i\x64\x5f\x70r\x6fdu\x63t`\x20\x3d\x20p.\x60id\x5f\x70ro\x64\x75c\x74\x60 AND\x20i.\x60c\x6fv\x65\x72\x60 =\x201)\n\t\t\tLEF\x54\x20JO\x49N\x20\x60"._DB_PREFIX_."st\x6fck\x5fa\x76\x61\x69\x6c\x61ble\x60 sav\x20ON (sa\x76\x2e`\x69d\x5f\x70\x72\x6fduc\x74\x60\x20=\x20\x70.`\x69d\x5fpro\x64\x75c\x74\x60 \x41N\x44 s\x61\x76.\x60i\x64\x5f\x70ro\x64\x75\x63\x74_a\x74tri\x62ut\x65\x60 \x3d \x30\n\t\t\t\tA\x4eD \x73a\x76.\x60i\x64_s\x68op` \x3d\x20".(int)$context->shop->id.")\n\t\t\x20 \x20\x20\x4c\x45F\x54 J\x4f\x49\x4e `"._DB_PREFIX_."c\x61tegor\x79_\x6ca\x6eg`\x20cl O\x4e\x20(p.id\x5fcatego\x72\x79_\x64e\x66aul\x74=\x63l\x2e\x69\x64_\x63\x61te\x67\x6fry A\x4eD c\x6c\x2ei\x64\x5flan\x67\x3d".$context->language->id.")\n\t\t  \x20 L\x45\x46T J\x4f\x49\x4e\x20\x60"._DB_PREFIX_."p\x72o\x64u\x63\x74_o\x77\x6e\x65r\x60\x20p\x6f\x20\x4fN p.id\x5fpr\x6f\x64u\x63t=p\x6f.\x69\x64_\x70\x72od\x75c\x74\n\t\t";$qqcoigsgjyr="\x72\x65\x73";$kacuaqqc="\x72\x65\x73";$igrohjwes="p";$botwcwpwks="\x6e";${$bpvhajxxu}=" WH\x45\x52\x45\x20p\x6f.\x69\x64_\x6fw\x6ee\x72>0 A\x4eD\x20po\x2ei\x64_\x6f\x77n\x65r \x3d\x20".intval(${${"G\x4cOB\x41L\x53"}["\x72\x64\x66\x75\x6f\x6bj\x6d"]})."\x20\n\t\t";${"G\x4c\x4f\x42A\x4c\x53"}["bo\x6f\x6bcxuf\x79u"]="n";$cwfqgglcuo="\x66r\x6f\x6d";$ngilunyqwfr="\x6f\x72\x64\x65rby";if(${${"\x47\x4cOB\x41\x4c\x53"}["\x70\x66\x63\x79\x69v\x6a"]})return Db::getInstance()->getValue("SEL\x45CT\x20\x43\x4f\x55\x4eT(*)\x20".${$cwfqgglcuo}.${$xrjvsnciv});${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x74p\x65ok\x74"]="\x72\x65\x73";if(${${"\x47LO\x42A\x4c\x53"}["\x6b\x78\x72\x64\x68\x6d\x69\x6b\x72\x72\x64"]}<1)${$igrohjwes}=1;if(${$botwcwpwks}<1)${${"G\x4cO\x42AL\x53"}["\x6d\x62m\x77\x63vp\x79\x69"]}=10;if(empty(${${"\x47\x4cOB\x41L\x53"}["g\x65\x76o\x73\x6ax\x7awv\x7a"]}))${$ngilunyqwfr}="\x70.da\x74e\x5fa\x64d";$xpjbbxquywm="\x77\x68ere";if(empty(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74\x73t\x71u\x70\x73f\x73"]}))${${"\x47\x4cO\x42A\x4c\x53"}["\x74st\x71upsfs"]}="\x44E\x53C";$rurizafi="\x6ci\x6dit";${"\x47\x4cO\x42\x41\x4c\x53"}["\x68\x6bv\x64s\x6c\x72\x63\x66eb\x6e"]="\x6c\x69\x6d\x69t";${"G\x4cOB\x41\x4cS"}["\x68ox\x73\x6e\x74c\x66"]="\x72\x65\x73";${${"G\x4c\x4f\x42\x41L\x53"}["\x76\x71ry\x69\x73\x73\x70\x66vf"]}="\x4fRD\x45\x52\x20\x42\x59 ".${${"\x47\x4c\x4f\x42ALS"}["\x67\x65\x76os\x6a\x78\x7a\x77v\x7a"]}."\x20".${${"\x47\x4c\x4f\x42\x41L\x53"}["t\x73\x74q\x75\x70\x73\x66\x73"]}."\x20\n\x20 \x20\x20\x20\x20\x20\x20";$ollrqejaxj="\x63\x75rre\x6e\x63\x79";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68k\x76d\x73\x6crcf\x65b\x6e"]}="L\x49MI\x54\x20".(((int)(${${"\x47LO\x42A\x4c\x53"}["\x6b\x78\x72d\x68\x6di\x6brrd"]})-1)*(int)(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x6f\x6f\x6b\x63\x78uf\x79u"]})).",".(int)(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x62m\x77cv\x70y\x69"]})."\n\t\t";${"\x47\x4c\x4f\x42A\x4cS"}["\x67\x6b\x75\x65crc"]="i";${${"GL\x4f\x42\x41LS"}["\x67j\x6cg\x66c\x70\x6a"]}=${$isicmqvbbypo}.${${"\x47L\x4fB\x41\x4c\x53"}["\x73z\x67n\x78\x74s\x73"]}.${$xpjbbxquywm}.${${"\x47L\x4f\x42\x41LS"}["\x6f\x63h\x68cbv\x63\x77"]}.${$rurizafi};${${"\x47\x4c\x4fBALS"}["\x68\x6f\x78\x73n\x74cf"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${${"\x47L\x4f\x42\x41\x4c\x53"}["g\x6a\x6cgf\x63\x70\x6a"]});if(empty(${${"\x47L\x4fB\x41\x4c\x53"}["\x6f\x73\x79\x6ao\x76v\x63"]}))return${${"\x47\x4c\x4f\x42AL\x53"}["\x6fsy\x6a\x6fv\x76\x63"]};${$ollrqejaxj}=new Currency((int)Configuration::get("\x50S\x5fCUR\x52\x45\x4eC\x59_DEF\x41ULT"));$njbebefjg="\x69";${${"\x47\x4c\x4fBA\x4cS"}["o\x73\x79\x6ao\x76\x76\x63"]}=Product::getProductsProperties(Context::getContext()->cookie->id_lang,${$kacuaqqc});for(${$njbebefjg}=0;${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x66u\x6f\x6bp\x6d\x6e\x63\x78\x69"]}<count(${$qqcoigsgjyr});${${"GLO\x42\x41\x4cS"}["\x67\x6b\x75\x65c\x72\x63"]}++){$dgckddsgnmwv="\x72\x65s";$qcwptleee="\x69";${"GLOB\x41\x4c\x53"}["q\x62\x70\x64pxn\x67\x63l"]="\x69";${$dgckddsgnmwv}[${$qcwptleee}]["\x70\x72\x69\x63e\x5f\x66i\x6ea\x6c"]=Product::getPriceStatic(${${"\x47\x4c\x4f\x42\x41LS"}["\x6fs\x79j\x6f\x76\x76\x63"]}[${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71\x62\x70d\x70x\x6egc\x6c"]}]["\x69\x64\x5f\x70r\x6f\x64u\x63\x74"],true,null,6,null,false,true,1,true)*$currency->conversion_rate/Context::getContext()->currency->conversion_rate;}return${${"\x47LOB\x41\x4cS"}["tt\x70\x65\x6f\x6b\x74"]};}public static function getOrders($id_seller,$showHiddenStatus=false,Context$context=null,$nb_only=false,$p=1,$n=10,$orderby='',$orderway=''){${"GL\x4f\x42\x41L\x53"}["\x6c\x74\x62\x61\x75\x73l\x64e\x68up"]="\x69d_s\x65\x6c\x6c\x65\x72";$nqdymmlc="\x73\x71l";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x6e\x6e\x6e\x64x\x65\x69\x71"]="\x6e";$keemonvo="v\x61l";$theqbrcnv="\x73\x71l";$ujlsdal="\x6cimit";${"\x47\x4cO\x42\x41L\x53"}["\x74\x76oq\x6f\x62el\x70\x6e\x73"]="co\x6e\x74\x65\x78t";$mtwbtmgxc="\x70";${"\x47\x4c\x4f\x42\x41LS"}["\x67ds\x6a\x73\x62\x63o\x62"]="\x6f\x72d\x65r\x77a\x79";$ebptquynlxp="s\x6fr\x74";$thihjwgktd="p";${"\x47L\x4fB\x41\x4c\x53"}["m\x62\x69\x6b\x63\x75"]="p";$pdoznznlxis="c\x6f\x6e\x74\x65\x78t";${"\x47\x4cOB\x41L\x53"}["z\x78\x78r\x62hrxk\x73f\x6c"]="\x73\x65\x6ce\x63\x74";$iiqyyps="fr\x6f\x6d";$qgrnwkvnjqp="k\x65\x79";$xphecsv="n";$yktoyoush="\x77\x68\x65re";if(!intval(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x74\x62\x61\x75s\x6cde\x68\x75\x70"]}))return;if(!${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x76o\x71\x6f\x62e\x6c\x70n\x73"]})${$pdoznznlxis}=Context::getContext();$fstlxtvowo="\x73q\x6c";${${"G\x4c\x4f\x42A\x4c\x53"}["z\x78\x78\x72b\x68\x72\x78\x6b\x73\x66\x6c"]}="\n\t\tSE\x4c\x45\x43\x54\x20o\x2e*\n\t\t\x20 \x20 , C\x4f\x4e\x43\x41T(L\x45FT(\x63.\x60\x66irs\x74na\x6de`,\x201),\x20'. ',\x20\x63.\x60\x6ca\x73t\x6e\x61m\x65`) \x41\x53 \x60c\x75s\x74\x6f\x6d\x65r`\n \x20 \x20\t\t, \x49F((S\x45LECT\x20\x43OUNT(s\x6f\x2e\x69\x64\x5f\x6f\x72\x64\x65r) \x46\x52OM \x60"._DB_PREFIX_."\x6frde\x72\x73`\x20\x73\x6f W\x48\x45RE\x20so.id_c\x75stomer\x20\x3d\x20o.\x69d\x5fcus\x74\x6fme\x72)\x20\x3e\x201, \x30, \x31)\x20\x61s\x20\x6e\x65w\n\t\t   \x20, (SEL\x45CT\x20SUM(\x6fd.\x60\x70ro\x64uc\x74_quanti\x74y\x60)\x20FRO\x4d \x60"._DB_PREFIX_."\x6f\x72\x64\x65\x72_d\x65\x74ai\x6c\x60\x20od\x20\x57\x48ERE\x20\x6f\x64.`\x69d_\x6f\x72d\x65\x72\x60 \x3d\x20o\x2e\x60id\x5f\x6f\x72d\x65\x72\x60) n\x62\x5f\x70r\x6fd\x75\x63ts\n\t\t";$ntiazinlksd="\x73\x6f\x72\x74";${${"\x47\x4c\x4fBA\x4c\x53"}["\x73\x7a\x67n\x78t\x73\x73"]}="\n\t\t\x46R\x4fM\x20\x60"._DB_PREFIX_."\x6fr\x64\x65rs\x60 \x6f\n\t\t\x20 \x20\x20L\x45\x46\x54 \x4aOI\x4e \x60"._DB_PREFIX_."\x63u\x73\x74o\x6der\x60 \x63 \x4fN\x20(o\x2ei\x64\x5fc\x75\x73\x74om\x65r=\x63.\x69d_\x63usto\x6der) \n\t\t\x20  \x20\x4c\x45\x46T\x20J\x4fIN \x60"._DB_PREFIX_."\x6frde\x72\x5f\x6f\x77\x6e\x65\x72` oo O\x4e (o.i\x64_\x6f\x72d\x65r\x3d\x6f\x6f.\x69d_\x6f\x72d\x65r) \n\t\t";${$yktoyoush}="\n\x20\x20\x20\x20\t\t\x57HE\x52\x45\x20\x6f\x6f.\x60id_own\x65\x72`\x20\x3d\x20".(int)${${"\x47LO\x42AL\x53"}["\x72\x64\x66\x75\x6f\x6b\x6a\x6d"]}."\n\x20\x20\x20\x20\t";${$nqdymmlc}="\x53\x45\x4c\x45CT\x20C\x4fUN\x54(*)\x20".${$iiqyyps}.${${"\x47L\x4fBAL\x53"}["\x66j\x69p\x78\x78s\x74fl"]};${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x6eh\x6bs\x73"]="\x73\x71l";$dnubmydtjcht="r\x65\x73";$obsrbfloxvdx="from";if(${${"\x47\x4cO\x42\x41L\x53"}["\x70\x66\x63yi\x76\x6a"]})return Db::getInstance()->getValue(${${"G\x4c\x4f\x42\x41\x4c\x53"}["h\x6e\x68k\x73\x73"]});if(${$thihjwgktd}<1)${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x62\x69kcu"]}=1;${"\x47L\x4f\x42\x41\x4cS"}["wa\x76\x64uc\x6ec\x70\x69\x7a\x63"]="\x6f\x72\x64\x65\x72\x77\x61\x79";if(${${"G\x4cO\x42\x41\x4cS"}["\x6d\x62m\x77c\x76py\x69"]}<1)${${"G\x4cO\x42\x41\x4cS"}["\x6a\x6e\x6endxe\x69q"]}=10;$jeyvflnnqj="o\x72der\x62\x79";if(empty(${${"G\x4cO\x42AL\x53"}["\x67\x65v\x6f\x73j\x78\x7a\x77\x76\x7a"]}))${${"\x47LO\x42\x41\x4cS"}["g\x65vo\x73\x6a\x78zw\x76\x7a"]}="\x6f\x2ed\x61te\x5f\x61dd";if(empty(${${"GL\x4f\x42\x41\x4cS"}["\x74st\x71\x75\x70\x73\x66s"]}))${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x61vd\x75cncp\x69\x7a\x63"]}="DE\x53\x43";${"\x47LO\x42A\x4c\x53"}["h\x72h\x70\x79\x65\x72\x70\x74"]="\x6c\x69\x6d\x69t";${$ntiazinlksd}="\x4f\x52\x44\x45\x52 BY\x20".${$jeyvflnnqj}." ".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x64\x73j\x73\x62cob"]}." \n  \x20  \x20\x20\x20";${${"GL\x4fB\x41\x4c\x53"}["\x68\x72\x68\x70ye\x72\x70t"]}="LI\x4dI\x54\x20".(((int)(${$mtwbtmgxc})-1)*(int)(${${"\x47L\x4fB\x41\x4c\x53"}["\x6d\x62\x6d\x77c\x76\x70yi"]})).",".(int)(${$xphecsv})."\n\t\t";${$theqbrcnv}=${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x68\x6an\x66\x68u\x62\x78"]}.${$obsrbfloxvdx}.${${"\x47L\x4f\x42A\x4c\x53"}["\x66j\x69\x70xxs\x74f\x6c"]}.${$ebptquynlxp}.${$ujlsdal};${${"\x47LO\x42AL\x53"}["osy\x6a\x6fvv\x63"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${$fstlxtvowo});if(!${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fsy\x6a\x6f\x76v\x63"]})return array();foreach(${$dnubmydtjcht} as${$qgrnwkvnjqp}=>${$keemonvo}){${"\x47\x4c\x4f\x42AL\x53"}["\x77\x71\x79\x78\x79\x70\x78h\x79e\x64"]="\x72\x65\x73";${"\x47\x4c\x4fBALS"}["d\x66j\x71\x68\x67\x65gm\x66"]="\x72\x65s\x32";${"G\x4cO\x42\x41\x4c\x53"}["\x7a\x68ke\x6dg\x69\x62\x74\x78"]="va\x6c";${"\x47LO\x42\x41\x4c\x53"}["ohcx\x64\x68i\x73\x6b"]="\x73\x71\x6c";${"\x47\x4cOBA\x4c\x53"}["\x66\x63j\x6b\x63\x6b\x72cdbk"]="k\x65y";$ckyqtxvqbf="\x72\x65\x73\x32";$ophmysue="\x72e\x73";${${"G\x4c\x4f\x42\x41LS"}["\x67jl\x67\x66cpj"]}="\n\t\t\t\t\x53E\x4c\x45CT os\x2e`id_\x6frd\x65\x72\x5f\x73ta\x74e`, o\x73l.`\x6eame\x60 AS \x6frd\x65\x72\x5f\x73ta\x74e, \x6f\x73.`invoi\x63\x65`\n\t\t\t\t\x46R\x4fM \x60"._DB_PREFIX_."\x6f\x72d\x65r\x5f\x68i\x73\x74\x6f\x72y`\x20oh\n\t\t\t\tL\x45\x46\x54 \x4a\x4fIN\x20\x60"._DB_PREFIX_."\x6f\x72der_st\x61\x74\x65\x60 \x6f\x73\x20ON\x20(\x6fs.\x60id\x5f\x6f\x72\x64er\x5fsta\x74\x65\x60\x20=\x20\x6f\x68.`id\x5for\x64\x65r\x5f\x73t\x61\x74e`)\n\t\t\t\tI\x4eN\x45\x52 \x4a\x4fI\x4e\x20`"._DB_PREFIX_."o\x72d\x65r\x5f\x73\x74\x61t\x65\x5f\x6c\x61ng`\x20\x6fs\x6c\x20O\x4e (o\x73.\x60\x69d_ord\x65\x72_s\x74a\x74\x65\x60\x20= \x6f\x73l.`\x69d_o\x72\x64\x65\x72\x5fs\x74\x61\x74\x65` \x41\x4e\x44 \x6fsl.\x60id\x5f\x6c\x61ng` = ".(int)$context->language->id.")\n\t\t\t\x57\x48E\x52E\x20\x6f\x68\x2e`\x69d\x5for\x64\x65r\x60 \x3d\x20".(int)(${${"\x47\x4c\x4f\x42\x41LS"}["\x7ahke\x6dg\x69\x62\x74\x78"]}["\x69\x64_ord\x65r"]).(!${${"\x47\x4cOB\x41\x4c\x53"}["\x78\x6c\x67\x65\x62\x6a\x73\x6d\x63q"]}?"\x20\x41\x4e\x44\x20\x6f\x73\x2e`h\x69\x64den`\x20!= \x31":"")."\n\t\t\t\t\x4fR\x44E\x52 \x42\x59\x20\x6fh.\x60\x64a\x74\x65\x5f\x61d\x64`\x20DE\x53\x43, \x6fh\x2e`i\x64\x5f\x6frder_his\x74\x6fry\x60\x20D\x45\x53\x43\n\t\t\tL\x49\x4d\x49\x54\x20\x31";${${"\x47LO\x42\x41\x4c\x53"}["\x64\x66\x6aq\x68\x67\x65g\x6d\x66"]}=Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(${${"GL\x4fBAL\x53"}["\x6fhc\x78\x64\x68\x69s\x6b"]});if(${${"\x47LO\x42\x41\x4c\x53"}["gl\x75\x74\x71\x78\x73s"]})${$ophmysue}[${${"\x47\x4c\x4f\x42A\x4c\x53"}["d\x6b\x6f\x66\x76e\x65s"]}]=array_merge(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77q\x79\x78y\x70\x78\x68\x79\x65\x64"]}[${${"GL\x4f\x42\x41\x4cS"}["\x66\x63j\x6bck\x72c\x64bk"]}],${$ckyqtxvqbf}[0]);}return${${"G\x4c\x4fBA\x4c\x53"}["\x6fsyj\x6fv\x76\x63"]};}public static function linkCustomerAndSeller($id_seller,$id_customer){${"G\x4cOB\x41L\x53"}["\x76\x67\x6b\x76rh\x71i\x6e"]="\x73\x71l";${"\x47\x4cO\x42ALS"}["\x73\x75\x71g\x61\x74\x7a\x75"]="\x69\x64\x5fc\x75st\x6f\x6d\x65\x72";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x65\x73\x66\x74q\x75\x71i\x6aj\x70"]="\x73ql";if(intval(${${"G\x4c\x4f\x42A\x4c\x53"}["su\x71\x67\x61tzu"]})<=0 OR intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["rd\x66\x75o\x6bj\x6d"]})<=0)return;${${"G\x4c\x4fB\x41L\x53"}["\x6fe\x73\x66tqu\x71ij\x6a\x70"]}="UP\x44A\x54E `"._DB_PREFIX_."\x73\x65\x6c\x6ceri\x6ef\x6f\x60\x20S\x45T\x20\x69\x64_\x63\x75\x73\x74o\x6de\x72=".intval(${${"\x47LO\x42\x41\x4cS"}["uh\x74tc\x70\x68un\x79\x6f"]})."\x20WHE\x52\x45\x20\x69d_\x73el\x6ce\x72=".intval(${${"G\x4c\x4f\x42A\x4c\x53"}["r\x64\x66\x75\x6f\x6b\x6am"]});Db::getInstance()->Execute(${${"\x47L\x4f\x42A\x4c\x53"}["v\x67k\x76r\x68\x71\x69n"]});}public static function getNumOfProducts($id_seller){$gonlfglrpr="\x69d\x5f\x73\x65\x6c\x6c\x65\x72";$uthbojdn="r\x65su\x6ct";${"G\x4cO\x42A\x4c\x53"}["\x76\x71\x6f\x77y\x6cm"]="\x73\x71l";$gckpgdnosmwx="\x72\x65\x73ul\x74";${"\x47L\x4f\x42A\x4c\x53"}["\x79ex\x73fvqxp\x76\x6b\x7a"]="\x69d_\x73el\x6c\x65\x72";if(intval(${$gonlfglrpr})<=0)return 0;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6al\x67\x66c\x70\x6a"]}="S\x45\x4cE\x43\x54 \x63ount(\x60\x69\x64_o\x77n\x65r\x60) \x41S\x20n\x75m\x20fr\x6fm\x20\x60"._DB_PREFIX_."pr\x6f\x64\x75ct_ow\x6eer` \x77h\x65r\x65\x20\x60id_own\x65\x72\x60=".intval(${${"G\x4c\x4f\x42\x41\x4c\x53"}["y\x65x\x73fv\x71\x78pv\x6bz"]});${$gckpgdnosmwx}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x71o\x77\x79l\x6d"]});if(isset(${$uthbojdn}["nu\x6d"])AND intval(${${"\x47L\x4f\x42\x41\x4c\x53"}["r\x63\x64pv\x73\x79e\x6dm"]}["\x6e\x75\x6d"])>0)return intval(${${"GLOB\x41\x4c\x53"}["rc\x64p\x76\x73\x79\x65\x6d\x6d"]}["num"]);return 0;}public static function getNumOfOrders($id_seller){${"\x47\x4cO\x42A\x4cS"}["toc\x77\x6b\x74lsc\x68\x75"]="r\x65\x73\x75l\x74";$erdnsvo="\x69\x64\x5fs\x65\x6c\x6ce\x72";${"\x47L\x4f\x42\x41\x4cS"}["\x71\x74d\x75\x62j\x69\x77\x72"]="s\x71\x6c";if(intval(${$erdnsvo})<=0)return 0;$mcbcsch="r\x65\x73u\x6ct";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x6algfc\x70j"]}="SEL\x45\x43T\x20c\x6fu\x6e\x74(\x60\x69\x64\x5fow\x6e\x65\x72`) \x41\x53\x20\x6eu\x6d\x20fr\x6fm\x20\x60"._DB_PREFIX_."\x6frd\x65\x72\x5fo\x77n\x65r` wh\x65r\x65 `\x69d_owner\x60=".intval(${${"\x47LO\x42\x41\x4c\x53"}["r\x64\x66\x75\x6f\x6b\x6a\x6d"]});${${"GL\x4fB\x41L\x53"}["\x72\x63\x64\x70\x76\x73\x79\x65\x6d\x6d"]}=Db::getInstance()->getRow(${${"G\x4cOBA\x4c\x53"}["\x71\x74\x64\x75\x62\x6a\x69\x77\x72"]});if(isset(${$mcbcsch}["num"])AND intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["t\x6fcw\x6b\x74l\x73\x63hu"]}["n\x75m"])>0)return intval(${${"\x47LOBA\x4cS"}["\x72c\x64\x70\x76s\x79e\x6dm"]}["n\x75m"]);return 0;}public static function getAccountBalance($id_seller){if(intval(${${"G\x4cOB\x41\x4cS"}["r\x64\x66\x75\x6fkjm"]})<=0)return 0;${${"\x47\x4c\x4f\x42ALS"}["\x67\x6a\x6cgf\x63pj"]}="\n\x20 \x20\x20\x20\x20  \x20  \x20\x53\x45\x4c\x45CT ba\x6c\x61\x6ec\x65\x20\n \x20\x20\x20\x20 \x20\x20\x20\x20\x20\x20\x46\x52\x4fM\x20\x20\x60"._DB_PREFIX_."s\x65ller_\x63ommis\x73i\x6fn`\x20\n \x20\x20\x20\x20\x20 \x20  \x20 \x57\x48ERE \x69\x64_sel\x6cer\x20\x3d".${${"\x47\x4cOBALS"}["\x72\x64\x66u\x6fk\x6a\x6d"]}."\n\x20\x20\x20\x20\x20\x20 \x20\x20 \x20 \x4fRD\x45\x52 B\x59\x20\x69d\x5fs\x65\x6c\x6c\x65r_\x63om\x6di\x73si\x6f\x6e D\x45\x53C\n  \x20 \x20 \x20     ";${${"\x47L\x4fB\x41LS"}["\x75p\x67\x78\x76\x65\x6b\x6d\x71\x69\x75h"]}=Db::getInstance()->getValue(${${"\x47L\x4fBA\x4c\x53"}["\x67j\x6c\x67f\x63p\x6a"]});return floatval(${${"\x47L\x4f\x42\x41L\x53"}["\x75\x70\x67\x78ve\x6bm\x71\x69\x75\x68"]});}public static function getTotalAmountSold($id_seller){${"G\x4c\x4f\x42\x41\x4c\x53"}["h\x67\x6a\x68e\x76\x7a\x72"]="\x69\x64_\x73\x65\x6c\x6c\x65\x72";$hfgitppty="\x72\x65\x73\x75\x6c\x74";if(intval(${${"\x47LO\x42\x41\x4c\x53"}["r\x64\x66\x75\x6f\x6b\x6a\x6d"]})<=0)return 0;${${"G\x4c\x4f\x42\x41\x4cS"}["g\x6alg\x66\x63\x70\x6a"]}="\n\x20\x20 \x20\x20\x20  \x20    \x20  S\x45LECT S\x55\x4d( (\x70\x72\x6f\x64u\x63t_q\x75an\x74\x69\x74y\x20 - \x70\x72o\x64u\x63\x74_q\x75\x61n\x74\x69\x74y\x5fr\x65f\x75n\x64e\x64\x20 ) * \n \x20\x20\x20 \x20  \x20\x20\x20\x20\x20 \x20 \x20    \x20   \x20\x20\x20(\x70\x72\x6f\x64uc\x74\x5fp\x72ic\x65\x20\n \x20   \x20\x20\x20\x20  \x20 \x20  \x20\x20\x20\x20\x20\x20\x20  \x20 \x20  - CA\x53\x45\x20\x57\x48\x45N re\x64uct\x69o\x6e_\x70\x65\x72c\x65nt>0 THE\x4e p\x72oduct_\x70r\x69ce *\x20r\x65\x64\x75cti\x6fn_per\x63\x65\x6e\x74/10\x30\x20E\x4cS\x45 r\x65\x64ucti\x6fn_\x61m\x6f\x75\x6et E\x4eD\n \x20  \x20   \x20\x20 \x20\x20 \x20    \x20 \x20 \x20\x20 \x20  \x20-\x20p\x72\x6fduc\x74_pr\x69ce\x20* grou\x70\x5f\x72ed\x75\x63t\x69o\x6e/10\x30\n\x20 \x20\x20 \x20   \x20   \x20 \x20\x20\x20\x20 \x20 \x20    \x20\x20)\n \x20  \x20   \x20\x20\x20\x20 \x20 \x20  \x20\x20\x20 \x20\x20  \x20 - CASE\x20\x57HE\x4e\x20\x49F\x4e\x55LL(d\x69sco\x75\x6et\x5fquant\x69\x74\x79_ap\x70lie\x64,0) = 1\x20\x54\x48E\x4e\x20I\x46NU\x4c\x4c(\x70\x72o\x64\x75ct_q\x75\x61n\x74\x69\x74y\x5f\x64\x69\x73\x63\x6funt,\x30) \x45\x4cS\x45\x20\x30 E\x4eD\n\x20\x20 \x20  \x20\x20\x20     \x20\x20\x20\x20 \x20\x20\x20\x20\x20\x20 \x20)\x20AS\x20t\x6f\x74a\x6c\n\x20 \x20\x20\x20\x20\x20  \x20  \x20  \x20\x46R\x4f\x4d `"._DB_PREFIX_."\x6f\x72d\x65\x72_d\x65\x74a\x69\x6c\x60\x20a\n\x20            \x20\x20 \x20 \x20 L\x45\x46\x54\x20JOI\x4e `"._DB_PREFIX_."or\x64\x65r_ow\x6e\x65r\x60\x20oo \x4f\x4e (\x61\x2e\x69d\x5f\x6fr\x64e\x72\x3doo\x2ei\x64\x5fo\x72d\x65r)\n \x20\x20 \x20\x20   \x20\x20\x20\x20\x20  \x57HE\x52E oo\x2e\x69d\x5fo\x77n\x65\x72\x20\x3d  ".intval(${${"\x47\x4cO\x42\x41\x4c\x53"}["hgj\x68\x65\x76\x7ar"]})."\n \x20\x20    \x20   \x20\x20\x20\x20\x20";${"\x47\x4c\x4fB\x41\x4cS"}["hd\x79\x6d\x74\x75\x6b\x65\x6f\x6f"]="r\x65\x73\x75l\x74";${"GL\x4fB\x41\x4c\x53"}["h\x75\x6f\x65l\x6en\x67\x62o\x67\x69"]="r\x65\x73u\x6ct";${${"\x47\x4c\x4f\x42AL\x53"}["\x68\x64y\x6d\x74u\x6b\x65\x6f\x6f"]}=Db::getInstance()->getRow(${${"G\x4cO\x42A\x4c\x53"}["\x67\x6al\x67\x66\x63\x70\x6a"]});if(isset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x63d\x70\x76s\x79e\x6dm"]}["\x74o\x74al"])AND intval(${${"\x47\x4cOB\x41L\x53"}["\x68\x75\x6f\x65\x6c\x6e\x6e\x67b\x6fg\x69"]}["\x74o\x74a\x6c"])>0)return Tools::ps_round(floatval(${$hfgitppty}["t\x6ft\x61\x6c"]),2);return 0;}public static function assign_all_products_under_category($id_category){$yexbey="\x73\x71l";${"\x47L\x4f\x42\x41\x4cS"}["c\x74j\x70\x69\x65"]="\x69\x64\x5f\x63\x61\x74e\x67\x6f\x72y";${"\x47L\x4fB\x41\x4c\x53"}["\x65\x75\x6ce\x76\x67\x6c\x6c\x73\x6f\x79s"]="\x69d\x5fo\x77n\x65\x72";$gesosefjuxtx="r\x6fw";$mucljtlreue="i\x6e\x73\x65\x72\x74s";if(!intval(${${"G\x4c\x4f\x42A\x4cS"}["\x63tj\x70i\x65"]}))return;$rtxiqoxa="i\x64\x5fo\x77\x6e\x65\x72";${$rtxiqoxa}=(int)AgileSellerManager::getObjectOwnerID("\x63a\x74\x65\x67ory",${${"G\x4cOB\x41\x4c\x53"}["\x6b\x70\x79\x6e\x77\x63\x75x\x6cpq"]});if(!${${"\x47\x4c\x4fBA\x4c\x53"}["\x65\x75\x6cev\x67\x6c\x6csoy\x73"]})return;${${"G\x4cO\x42\x41LS"}["xw\x75\x67\x6f\x62\x71\x69\x6e\x78"]}=implode(AgileSellerManager::get_all_children(${${"\x47\x4cO\x42A\x4c\x53"}["\x6bpy\x6e\x77\x63\x75\x78\x6c\x70\x71"]}),",");${"GL\x4f\x42\x41L\x53"}["v\x70x\x7a\x66\x66\x72j\x73\x63"]="\x75\x70da\x74e\x73";${"\x47L\x4f\x42A\x4cS"}["\x7ati\x62i\x6ax\x65dt\x69"]="\x69\x6e\x73\x65\x72\x74\x73";${$yexbey}="S\x45\x4c\x45\x43T cp.i\x64_\x70r\x6fd\x75\x63t\x20\x41S\x20i\x64_\x70r\x6f\x64\x75c\x74,\x20\x49FNU\x4c\x4c(\x70\x6f.\x69\x64\x5f\x6f\x77ne\x72,-\x31) \x41S\x20i\x64\x5fo\x77\x6ee\x72\n\t\t\t\t\x46\x52\x4fM "._DB_PREFIX_."c\x61tegor\x79\x5f\x70\x72\x6f\x64u\x63t\x20\x63p\n\t\t\t\tLEF\x54 J\x4f\x49\x4e "._DB_PREFIX_."\x70\x72o\x64u\x63\x74\x5f\x6fw\x6ee\x72\x20po\x20\x6f\x6e c\x70\x2eid\x5fprodu\x63\x74\x20\x3d\x20\x70\x6f\x2eid\x5f\x70\x72o\x64uc\x74\n\t\t\t\t\x57\x48\x45\x52\x45 cp.id\x5f\x63\x61\x74e\x67\x6fr\x79\x20\x49\x4e (".${${"\x47\x4c\x4f\x42\x41LS"}["x\x77u\x67\x6f\x62\x71\x69\x6e\x78"]}.")\n\t\t\t\t\t\x41\x4e\x44  IFNULL(\x20po.\x69d_o\x77n\x65\x72\x20, -1\x20) \x21\x3d\x20".${${"\x47LOB\x41LS"}["\x77\x74\x73\x75\x68xy"]}."\n\t\t\x20";${${"\x47\x4c\x4f\x42\x41LS"}["\x68\x64bq\x6f\x68\x66v"]}=Db::getInstance()->ExecuteS(${${"\x47\x4c\x4f\x42\x41L\x53"}["gj\x6cg\x66\x63p\x6a"]});if(empty(${${"GL\x4fB\x41\x4c\x53"}["\x68dbqo\x68\x66\x76"]}))return;${$mucljtlreue}=array();${${"\x47L\x4fBAL\x53"}["\x76px\x7a\x66\x66\x72j\x73c"]}=array();foreach(${${"\x47LOB\x41\x4c\x53"}["h\x64bq\x6f\x68\x66\x76"]} as${$gesosefjuxtx}){$fleezq="\x69ns\x65\x72\x74\x73";$uubyjeu="r\x6f\x77";if(${$uubyjeu}["id_\x6f\x77\x6eer"]>=0)${${"G\x4c\x4f\x42AL\x53"}["\x6a\x7am\x67\x67t\x65\x6d\x75f"]}[]=${${"G\x4c\x4f\x42A\x4c\x53"}["\x62\x71\x72\x62\x63\x78\x76\x6d\x6f\x6e"]}["\x69d_pro\x64\x75c\x74"];else${$fleezq}[]=${${"\x47\x4c\x4f\x42\x41L\x53"}["\x62\x71\x72\x62\x63\x78\x76\x6d\x6f\x6e"]}["id\x5f\x70\x72\x6f\x64\x75c\x74"];}if(!empty(${${"\x47\x4cO\x42A\x4cS"}["\x7a\x74\x69\x62ij\x78\x65d\x74i"]})){${"\x47\x4c\x4f\x42A\x4cS"}["l\x72\x75lcx\x62\x6c\x71\x62"]="\x69n\x73e\x72\x74\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6a\x71\x79u\x72\x71wst\x79d\x63"]="sql";${${"GLO\x42\x41\x4cS"}["\x67\x6a\x6c\x67\x66\x63\x70\x6a"]}="\x49\x4e\x53ER\x54\x20\x49N\x54\x4f\x20"._DB_PREFIX_."p\x72o\x64\x75ct_\x6f\x77\x6e\x65r (i\x64_\x70ro\x64uct,id_\x6fw\x6e\x65\x72,\x64\x61\x74\x65_\x61d\x64)\x20V\x41\x4c\x55E\x53\x20";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x65ed\x68x"]}=0;foreach(${${"G\x4c\x4fB\x41\x4c\x53"}["\x6cru\x6c\x63x\x62\x6c\x71\x62"]} as${${"\x47\x4cO\x42\x41L\x53"}["\x6a\x6f\x69\x63\x72\x6dd\x6e"]}){$vyhikyxi="i\x64\x78";$kdkxhftmcfv="i\x64\x5fow\x6e\x65\x72";$dkssdtfkj="sq\x6c";${"G\x4c\x4f\x42A\x4c\x53"}["\x74w\x6dt\x62\x64\x65o\x70"]="\x73\x71\x6c";if(${${"\x47LO\x42\x41L\x53"}["\x70\x65ed\x68\x78"]}>0)${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x77m\x74\x62\x64eo\x70"]}.=",";${$dkssdtfkj}.="(".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["joi\x63rmd\x6e"]}.",".${$kdkxhftmcfv}.",\x4eOW())";${$vyhikyxi}++;}Db::getInstance()->Execute(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x71y\x75\x72\x71\x77st\x79\x64\x63"]});}if(!empty(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6azmg\x67t\x65\x6d\x75f"]})){${"\x47LOBA\x4c\x53"}["\x61\x67\x69\x62zop"]="\x75\x70\x64\x61\x74e\x73";${"G\x4c\x4f\x42A\x4cS"}["\x66z\x76\x72y\x66\x63\x61\x63"]="\x73\x71l";${${"G\x4c\x4fB\x41LS"}["\x66\x7a\x76\x72\x79f\x63\x61\x63"]}="UPDA\x54E "._DB_PREFIX_."\x70ro\x64uc\x74\x5f\x6f\x77\x6e\x65\x72 \x53\x45\x54 id\x5fowner \x3d\x20".${${"\x47\x4cO\x42A\x4c\x53"}["w\x74\x73\x75\x68\x78y"]}." WH\x45RE\x20\x69\x64_p\x72o\x64\x75\x63\x74 I\x4e\x20(".implode(${${"G\x4c\x4fBA\x4c\x53"}["a\x67i\x62\x7a\x6f\x70"]},",").")";Db::getInstance()->Execute(${${"\x47\x4cO\x42A\x4c\x53"}["\x67\x6a\x6cg\x66\x63p\x6a"]});}}public static function get_all_children($id_category){${"GLOB\x41\x4cS"}["\x68gm\x6f\x6f\x74\x6a\x7a\x77\x76"]="\x72\x65cs";$phgnog="\x69\x64\x5f\x63\x61t\x65\x67o\x72\x79";$pxldibx="lis\x74";${"GL\x4f\x42\x41\x4cS"}["\x6em\x62\x71rec\x74"]="\x69\x64_\x63\x61t\x65g\x6fr\x79";${${"GL\x4f\x42\x41\x4cS"}["x\x77u\x67o\x62\x71\x69\x6ex"]}=array();$tepuxodlrn="li\x73\x74";if(!intval(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6e\x6d\x62\x71\x72ec\x74"]}))return${${"GLOB\x41\x4cS"}["\x78wu\x67\x6fb\x71\x69\x6ex"]};${${"GLO\x42\x41\x4c\x53"}["\x78w\x75\x67\x6f\x62\x71\x69\x6e\x78"]}[]=intval(${${"\x47L\x4fB\x41\x4c\x53"}["kp\x79\x6ew\x63\x75x\x6cpq"]});${"GL\x4fB\x41\x4cS"}["y\x6esqx\x6b"]="\x73\x71l";${"GL\x4f\x42AL\x53"}["\x62d\x7ae\x62e\x6eh\x67\x73"]="\x72\x65\x63\x73";${${"\x47L\x4fB\x41\x4c\x53"}["\x67jl\x67\x66\x63\x70\x6a"]}="\x53EL\x45\x43T \x69d\x5f\x63\x61t\x65go\x72y \x46R\x4fM\x20"._DB_PREFIX_."\x63\x61\x74\x65go\x72\x79\x20w\x68er\x65 i\x64_par\x65\x6et=".${$phgnog};${${"\x47LO\x42A\x4c\x53"}["b\x64z\x65\x62\x65\x6e\x68g\x73"]}=Db::getInstance()->ExecuteS(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x6e\x73\x71\x78\x6b"]});if(empty(${${"\x47L\x4f\x42\x41\x4c\x53"}["h\x67m\x6fo\x74\x6a\x7a\x77v"]}))return${$pxldibx};foreach(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x63\x79\x62\x71\x67qw\x70\x73d"]} as${${"\x47L\x4f\x42\x41\x4cS"}["xbx\x70\x76yl"]}){$nblmcisnicz="\x6c\x69\x73\x74";${${"\x47L\x4f\x42\x41L\x53"}["\x78w\x75\x67\x6f\x62q\x69\x6ex"]}=array_merge(${$nblmcisnicz},AgileSellerManager::get_all_children(${${"\x47LO\x42\x41\x4cS"}["x\x62\x78\x70\x76y\x6c"]}["\x69\x64_\x63\x61\x74\x65\x67\x6f\x72y"]));}return${$tepuxodlrn};}public static function get_order_id_from_maildata($templateVars){$qoccpwku="\x69\x64\x5f\x6fr\x64\x65r";${"GL\x4fB\x41\x4cS"}["og\x66v\x71me"]="\x69\x64_\x6frde\x72";if(_PS_VERSION_>"1\x2e\x35")${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6fg\x66v\x71me"]}=Db::getInstance()->getValue("SE\x4c\x45CT \x69\x64_\x6f\x72\x64\x65r F\x52O\x4d\x20"._DB_PREFIX_."ord\x65\x72s\x20W\x48ER\x45 \x72ef\x65\x72e\x6ece\x3d\x27".${${"G\x4c\x4f\x42\x41L\x53"}["poe\x70\x71\x73\x6b\x73m"]}["{o\x72der\x5fn\x61\x6d\x65}"]."'");else${${"\x47\x4c\x4fBA\x4c\x53"}["\x77\x70b\x65y\x6d\x75o\x79\x62\x70\x6b"]}=str_replace("#","",${${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x6f\x65\x70\x71\x73\x6b\x73\x6d"]}["{ord\x65\x72_\x6ea\x6de}"]);return intval(${$qoccpwku});}public static function adjust_shipping_cost_carriers($templateVars){$hsqzypwieo="c\x61r\x72\x69\x65\x72\x5f\x70rod\x75\x63\x74\x73";$wjlxqnf="\x70\x72o\x64\x75\x63\x74\x73";${"G\x4c\x4f\x42\x41LS"}["lo\x6cm\x70\x69rp\x66\x66"]="\x74empl\x61t\x65V\x61\x72s";$eivgmkk="\x69d\x5fo\x72\x64e\x72";$ngcfajwh="\x6f\x72\x64\x65\x72";$gpvmwgvb="i\x64\x5f\x6f\x72der";${"\x47\x4c\x4f\x42\x41L\x53"}["i\x63m\x66\x6a\x62sn\x68\x75"]="\x6f\x72der_t\x6ft\x61\x6c\x5f\x77\x74";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6et\x62dpox"]="\x69\x64\x5f\x7a\x6f\x6e\x65";${"\x47\x4cO\x42A\x4c\x53"}["\x70\x6db\x65anl\x6e\x62"]="\x74\x68e\x43\x61\x72\x74";${"G\x4c\x4fB\x41\x4c\x53"}["vqsv\x67\x69xn\x67b\x6c\x6d"]="s\x71l";${"G\x4c\x4f\x42\x41\x4c\x53"}["mg\x79y\x6b\x69\x77\x67\x68\x79\x66j"]="\x73\x68\x69\x70\x70\x69n\x67_\x74\x6f\x74\x61\x6c\x5f\x77\x74";$gmljemd="\x6f\x72d\x65r_\x74\x6f\x74\x61l\x5fw\x74";${"G\x4cOB\x41\x4cS"}["\x77\x68\x6d\x6cjhoa\x6d"]="\x69d\x5f\x73\x65\x6cl\x65\x72";$rdnpxrmvhm="\x69d_\x6f\x72\x64\x65\x72";if(_PS_VERSION_<"\x31.5")return;if(!Module::isInstalled("ag\x69leseller\x73hippin\x67"))return;${$rdnpxrmvhm}=AgileSellerManager::get_order_id_from_maildata(${${"GLO\x42\x41\x4c\x53"}["\x6c\x6f\x6c\x6d\x70\x69\x72p\x66f"]});if(!intval(${${"\x47\x4c\x4fBA\x4c\x53"}["\x77p\x62\x65\x79\x6d\x75\x6fy\x62\x70k"]}))return;include_once(_PS_ROOT_DIR_."/m\x6fd\x75\x6c\x65s/\x61gil\x65\x73\x65\x6c\x6c\x65r\x73\x68ip\x70ing/\x61\x67\x69\x6ces\x65ll\x65\x72shipping.ph\x70");${$ngcfajwh}=new Order(${$gpvmwgvb});if(!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x6a\x76\x63t\x6dmi\x74\x6ft\x78"]}))return;Db::getInstance()->Execute("D\x45L\x45\x54E\x20\x46\x52OM "._DB_PREFIX_."o\x72d\x65r_\x63\x61\x72r\x69er \x57\x48\x45RE\x20\x69\x64_order\x3d".${$eivgmkk});${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x67\x6d\x63\x64d\x77\x6d"]="\x69\x64_\x73ell\x65r";${${"G\x4c\x4f\x42\x41L\x53"}["p\x6d\x62\x65\x61\x6e\x6c\x6e\x62"]}=new Cart($order->id_cart);${"\x47\x4c\x4f\x42\x41LS"}["\x67\x69\x6c\x74\x62n\x70"]="\x63\x61\x72\x72ie\x72\x5fpr\x6f\x64\x75\x63\x74s";${"G\x4cOB\x41\x4c\x53"}["\x63y\x71\x73\x63\x6exc"]="\x63a\x72\x72ie\x72_a\x6d\x6f\x75\x6e\x74\x73";$htklotphiug="\x73\x68\x69\x70\x70\x69\x6e\x67\x5f\x74\x6f\x74\x61\x6c\x5f\x77\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["m\x73\x63\x70yzpq\x6f"]="\x73\x68\x69p\x70i\x6e\x67\x5ft\x6f\x74al\x5fwt";$pbnvvxboed="\x69\x64\x5fc\x61\x72\x72\x69e\x72";${${"\x47\x4c\x4fB\x41L\x53"}["\x6e\x74\x62d\x70ox"]}=SellerShipping::getZoneID($theCart->id_address_delivery,$theCart->id_customer);${$wjlxqnf}=$theCart->getProducts();${${"\x47\x4cO\x42\x41\x4cS"}["\x73z\x74r\x73\x73m"]}=array();${"\x47LO\x42\x41\x4c\x53"}["\x6bu\x79\x6b\x77ec"]="\x70";foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["p\x67\x68\x6a\x71\x71v\x63"]} as${${"G\x4c\x4f\x42\x41L\x53"}["\x6b\x75\x79k\x77\x65c"]}){$jcanohi="\x70r\x6f\x64u\x63t_\x69\x6e\x64ex";${"G\x4c\x4f\x42\x41LS"}["\x74\x71\x65\x70\x75\x63\x73m"]="p";${$jcanohi}[${${"\x47\x4cO\x42AL\x53"}["t\x71epu\x63sm"]}["i\x64\x5f\x70\x72\x6fduc\x74"]]=${${"G\x4cOB\x41\x4c\x53"}["\x6bx\x72d\x68\x6d\x69\x6br\x72\x64"]};}${${"\x47L\x4f\x42AL\x53"}["w\x67m\x63\x64\x64\x77\x6d"]}=AgileSellerManager::getObjectOwnerID("\x6f\x72der",$order->id);if(${${"\x47L\x4f\x42A\x4c\x53"}["\x72\x64fuok\x6am"]}<=0)${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x68\x6d\x6c\x6a\x68\x6f\x61m"]}=0;${$hsqzypwieo}=SellerShipping::get_carrier_products($order->id_cart,${${"G\x4c\x4f\x42A\x4c\x53"}["\x72\x64f\x75\x6f\x6bj\x6d"]});${${"G\x4c\x4f\x42A\x4cS"}["\x63y\x71\x73\x63\x6ex\x63"]}=$theCart->get_carrier_product_amount(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x69l\x74b\x6e\x70"]},${${"\x47\x4cO\x42A\x4c\x53"}["\x70g\x68\x6a\x71\x71\x76c"]},${${"\x47L\x4f\x42A\x4cS"}["\x73z\x74\x72ss\x6d"]});foreach(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6a\x62\x79\x6d\x73mv\x6a\x65s\x73"]} AS${$pbnvvxboed}=>${${"\x47L\x4f\x42\x41\x4c\x53"}["r\x71\x69oi\x68"]}){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75\x70\x76\x67blm\x75\x73\x77"]="\x69\x64\x5fc\x61r\x72\x69\x65r";${"\x47\x4cOB\x41\x4cS"}["\x6d\x63cdnj\x66\x6c\x68"]="\x63a\x72\x72\x69\x65\x72\x5fw\x65\x69\x67h\x74";${${"G\x4c\x4fB\x41L\x53"}["\x67\x74\x69y\x72\x66\x67"]}=new Carrier(${${"\x47L\x4f\x42AL\x53"}["\x67j\x78c\x78\x69\x6f"]});${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6dccd\x6e\x6a\x66\x6c\x68"]}=$theCart->getTotalWeightOfCarrier(${${"GL\x4f\x42AL\x53"}["\x75p\x76\x67\x62lm\x75\x73\x77"]},${${"\x47L\x4f\x42A\x4c\x53"}["\x72\x64\x66\x75\x6f\x6b\x6a\x6d"]});$oeineku="\x63\x61rrie\x72\x5fcos\x74_n\x74";if($theCart->is_all_virtual(${${"\x47LOB\x41L\x53"}["gj\x78\x63\x78\x69\x6f"]},${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x64\x76b\x76q\x77\x6a\x6dg\x68"]},${${"\x47L\x4fB\x41L\x53"}["\x73\x7a\x74r\x73sm"]})){$fsbxcdyndn="\x63a\x72\x72ie\x72\x5f\x63os\x74\x5f\x77\x74";${$fsbxcdyndn}=0;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78go\x73\x66\x63f"]}=0;}else{$ffqyxgy="id\x5fz\x6f\x6e\x65";$ignxsplm="\x69\x64_s\x65\x6c\x6c\x65r";${"\x47\x4c\x4f\x42\x41LS"}["d\x77\x71i\x68r\x76e\x70\x68o"]="i\x64_ca\x72\x72\x69\x65r";${"G\x4cO\x42\x41LS"}["\x75\x66o\x64\x63f\x7ap\x6d\x67v"]="\x63\x61\x72r\x69\x65\x72\x5f\x77\x65\x69\x67\x68\x74";$xcpnygnd="\x63\x61rrie\x72\x5f\x63\x6f\x73t_\x77\x74";$suyvvflksv="\x63arri\x65\x72\x5f\x61\x6dou\x6e\x74";${$xcpnygnd}=$theCart->getOrderShippingCostPerSellerCarrier(${$ignxsplm},true,${$ffqyxgy},${${"\x47\x4cO\x42AL\x53"}["d\x77q\x69\x68\x72\x76ep\x68o"]},${$suyvvflksv},${${"\x47\x4cO\x42A\x4c\x53"}["\x66\x76\x77\x66\x66nbsec\x78"]});${"G\x4c\x4fBAL\x53"}["g\x77\x71\x74n\x6aiv\x6d\x69"]="\x69\x64_\x7a\x6fn\x65";$xfkmcjfyb="c\x61r\x72\x69\x65\x72\x5f\x63os\x74\x5f\x6e\x74";${$xfkmcjfyb}=$theCart->getOrderShippingCostPerSellerCarrier(${${"\x47\x4cOBA\x4c\x53"}["\x72d\x66u\x6f\x6bj\x6d"]},true,${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x67w\x71\x74nj\x69v\x6d\x69"]},${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67\x6a\x78\x63xi\x6f"]},${${"\x47L\x4f\x42A\x4cS"}["\x72q\x69\x6f\x69h"]},${${"\x47\x4cOB\x41\x4cS"}["\x75\x66\x6f\x64\x63f\x7a\x70\x6dg\x76"]});}${${"\x47\x4c\x4f\x42ALS"}["g\x6a\x6c\x67\x66\x63\x70\x6a"]}="\x49\x4eS\x45\x52T\x20I\x4eTO "._DB_PREFIX_."\x6f\x72\x64\x65r_\x63a\x72\x72\x69er\x20(i\x64_\x6f\x72\x64\x65r,i\x64_\x63a\x72ri\x65r,i\x64_o\x72\x64\x65r_\x69nvo\x69ce,\x77ei\x67ht,s\x68\x69\x70ping_\x63ost_tax\x5fe\x78c\x6c,\x73h\x69\x70p\x69ng_c\x6fst\x5f\x74\x61\x78_i\x6e\x63l,t\x72a\x63king\x5fnu\x6d\x62\x65r,d\x61\x74\x65_a\x64\x64) \x56AL\x55\x45\x53\n\t\t\t\t(".$order->id.",".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["g\x6axc\x78\x69\x6f"]}.",".$order->invoice_number.",".${${"G\x4c\x4f\x42AL\x53"}["\x66\x76\x77\x66\x66\x6ebs\x65\x63\x78"]}.",".${$oeineku}.",".${${"\x47L\x4fB\x41LS"}["v\x72\x6du\x6f\x73\x71\x68\x75\x75c"]}.",'',\x27".date("Y-m-d H:\x69:\x73")."\x27)\n\t\t\t";Db::getInstance()->Execute(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x6al\x67\x66c\x70j"]});}$kzecxor="\x6f\x72d\x65\x72_\x74\x6f\x74a\x6c\x5fwt";${$kzecxor}=$theCart->getOrderTotal(true);${${"\x47\x4c\x4fB\x41L\x53"}["\x67\x71\x64\x71\x70\x76\x74q\x63\x65n"]}=$theCart->getOrderTotal(false);${"\x47LOBA\x4cS"}["mi\x66\x65spjw"]="\x6f\x72\x64\x65\x72\x5ft\x6fta\x6c_n\x74";${$htklotphiug}=$theCart->getOrderTotal(true,Cart::ONLY_SHIPPING);${${"G\x4c\x4f\x42AL\x53"}["y\x6by\x72\x74\x77\x6b\x74\x79"]}=$theCart->getOrderTotal(false,Cart::ONLY_SHIPPING);${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76q\x73v\x67\x69\x78\x6eg\x62\x6c\x6d"]}="UP\x44A\x54E\x20"._DB_PREFIX_."o\x72\x64\x65\x72\x73\x20SE\x54\x20to\x74\x61\x6c_s\x68ipp\x69\x6eg=".${${"GL\x4f\x42ALS"}["mg\x79yk\x69w\x67h\x79fj"]}.",t\x6ftal\x5f\x73h\x69p\x70i\x6e\x67\x5f\x74\x61\x78_\x69n\x63l\x3d".${${"\x47\x4c\x4f\x42A\x4cS"}["m\x73\x63\x70\x79z\x70\x71o"]}.",tot\x61l\x5fsh\x69pp\x69ng\x5f\x74\x61\x78_e\x78c\x6c=".${${"G\x4cOB\x41\x4cS"}["\x79\x6by\x72\x74w\x6b\x74\x79"]}.",t\x6f\x74\x61l\x5fp\x61\x69d\x3d".${$gmljemd}.",t\x6ft\x61\x6c\x5f\x70\x61\x69\x64\x5ft\x61\x78_e\x78\x63\x6c\x3d".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x69\x66\x65\x73pj\x77"]}.", to\x74a\x6c_\x70\x61\x69d\x5f\x74\x61\x78_in\x63l\x3d".${${"GL\x4f\x42\x41LS"}["\x69\x63\x6df\x6ab\x73\x6eh\x75"]}.",\x20i\x64_c\x61\x72\x72\x69\x65\x72\x3d".intval(Configuration::get("\x41\x47I\x4c\x45\x5f\x53\x53\x5f\x43ARR\x49E\x52_ID"))."\x20\x57H\x45\x52\x45 \x69\x64\x5f\x6f\x72\x64\x65\x72=".${${"G\x4c\x4fB\x41\x4c\x53"}["\x77\x70\x62\x65\x79m\x75\x6f\x79\x62\x70\x6b"]};Db::getInstance()->Execute(${${"\x47\x4cO\x42A\x4c\x53"}["gjl\x67\x66\x63\x70j"]});if(version_compare(_PS_VERSION_,"\x31.5","\x3e=")){$rusoxrvh="s\x68\x69\x70ping_\x74o\x74a\x6c\x5f\x6e\x74";${"G\x4c\x4fB\x41\x4cS"}["\x78x\x73\x74\x77\x62f\x68\x61t\x72"]="i\x64\x5f\x6f\x72\x64\x65r";$ihmnlue="s\x71\x6c";${"\x47\x4c\x4fBALS"}["\x6ea\x6f\x6a\x69\x61\x67\x6f\x73\x77"]="o\x72\x64\x65r_\x74\x6f\x74a\x6c\x5f\x77\x74";${$ihmnlue}="UP\x44A\x54E\x20"._DB_PREFIX_."\x6f\x72der\x5fin\x76\x6fic\x65\x20\x53\x45T\x20t\x6f\x74a\x6c\x5f\x73hip\x70\x69\x6e\x67\x5f\x74\x61\x78_inc\x6c\x3d".${${"\x47\x4cOBA\x4cS"}["\x6c\x65\x72\x6cbv\x69\x6fl\x62\x6d"]}.",t\x6f\x74\x61l\x5f\x73h\x69pp\x69ng_\x74\x61x_\x65xc\x6c\x3d".${$rusoxrvh}.",\x74\x6ftal\x5fp\x61i\x64\x5f\x74ax_\x65x\x63l=".${${"\x47\x4c\x4fBAL\x53"}["g\x71\x64\x71\x70\x76\x74q\x63\x65\x6e"]}.", tota\x6c_pa\x69\x64\x5f\x74\x61x_i\x6e\x63\x6c=".${${"\x47\x4c\x4fB\x41LS"}["\x6ea\x6f\x6a\x69\x61\x67os\x77"]}." W\x48\x45RE\x20id\x5f\x6f\x72\x64\x65\x72\x3d".${${"\x47\x4c\x4fBAL\x53"}["x\x78\x73\x74\x77\x62f\x68\x61tr"]};Db::getInstance()->Execute(${${"\x47\x4c\x4f\x42AL\x53"}["\x67\x6alg\x66cpj"]});}}public static function limited_by_membership($id_seller){if(intval(${${"\x47\x4c\x4fBA\x4c\x53"}["r\x64f\x75\x6fk\x6am"]})>0 AND Module::isInstalled("\x61\x67\x69\x6c\x65\x6d\x65mbe\x72shi\x70")AND intval(Configuration::get("A\x47I\x4c\x45\x5fMEMB\x45\x52S\x48\x49\x50\x5fSELL\x45R_\x49\x4e\x54\x45"))>0){include_once(_PS_ROOT_DIR_."/\x6do\x64\x75\x6ce\x73/\x61\x67\x69lemu\x6cti\x70\x6c\x65\x73e\x6cl\x65\x72/\x53el\x6cerInf\x6f\x2ep\x68p");include_once(_PS_ROOT_DIR_."/\x6do\x64u\x6c\x65\x73/\x61\x67\x69\x6c\x65\x6de\x6d\x62e\x72s\x68\x69p/agile\x6d\x65m\x62ers\x68\x69p.p\x68p");$vlywtsv="\x69d\x5f\x73e\x6c\x6c\x65r";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73c\x79\x77\x63\x79\x63\x6ct"]="\x6dem\x62\x65\x72\x73h\x69pty\x70\x65";include_once(_PS_ROOT_DIR_."/\x6d\x6fdu\x6c\x65s/agi\x6ceme\x6d\x62er\x73\x68i\x70/Memb\x65rs\x68i\x70Typ\x65\x2eph\x70");$ycmreqm="m\x65m\x62\x65\x72\x73\x68\x69\x70\x74\x79p\x65";${"\x47\x4cO\x42\x41LS"}["\x63\x76\x6fdh\x75\x62\x6a\x62\x6a\x61"]="\x6de\x6d\x62er\x73\x68\x69p";include_once(_PS_ROOT_DIR_."/m\x6f\x64\x75les/a\x67il\x65me\x6d\x62\x65\x72sh\x69p/\x43\x75\x73\x74\x6f\x6d\x65r\x4d\x65mb\x65\x72\x73\x68\x69\x70.p\x68\x70");${"\x47LO\x42\x41\x4c\x53"}["\x6bd\x6fqw\x68w\x68r"]="\x6e\x75\x6d";${${"\x47\x4cOB\x41\x4c\x53"}["y\x78\x6awy\x79\x63q\x6f\x78"]}=new SellerInfo(SellerInfo::getIdBSellerId(${$vlywtsv}));${${"G\x4c\x4fBA\x4c\x53"}["\x63\x76odh\x75\x62j\x62\x6a\x61"]}=new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));if(!Validate::isLoadedObject(${${"G\x4cO\x42A\x4c\x53"}["x\x70wf\x79ppf\x79\x78"]}))return true;${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68\x65e\x73\x61\x74\x78\x79\x69"]="\x69\x64_se\x6c\x6ce\x72";${$ycmreqm}=new MembershipType($membership->id_membership_type);if(!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73cy\x77\x63\x79clt"]}))return true;if(!AgileMembership::isActivated($sellerinfo->id_customer)OR!AgileMembership::isMemberFeePaid($sellerinfo->id_customer))return true;${${"\x47\x4cO\x42\x41\x4cS"}["l\x73\x63j\x71e\x68\x72\x6a\x63"]}=AgileSellerManager::getAcitveProductsListed(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68\x65\x65\x73at\x78\x79\x69"]});if(${${"G\x4c\x4fBA\x4cS"}["\x6bd\x6f\x71\x77\x68\x77\x68\x72"]}>=intval($membershiptype->listing_max)AND intval($membershiptype->listing_max)>0)return true;return false;}return false;}public static function getCarriersBySellerId($id_seller,$id_lang){$yzcjatgrxpwv="id_\x6c\x61\x6e\x67";${${"G\x4c\x4fB\x41\x4c\x53"}["gj\x6c\x67\x66\x63\x70\x6a"]}="\x53\x65le\x63t\x20\x63\x2e\x69\x64_\x63\x61\x72ri\x65r, \x63\x2e\x6e\x61\x6d\x65,\x20\x63\x2e\x61\x63tive,\x20\x63\x2e\x69\x73\x5f\x66re\x65, cl\x2e\x64el\x61\x79,  \x49\x46N\x55LL(c\x6f.\x69\x64\x5fo\x77\x6e\x65r,0) A\x53 \x69d_\x6f\x77\x6e\x65r \n\t\t\t\x66rom\x20"._DB_PREFIX_."ca\x72r\x69\x65\x72 c\x20\n\t\t\t\t\x69\x6ener \x6ao\x69\x6e "._DB_PREFIX_."\x63\x61rr\x69\x65r\x5fowner\x20c\x6f\x20\x6f\x6e\x20\x63\x2eid_\x63\x61r\x72\x69er \x3d\x20\x63\x6f\x2e\x69d\x5f\x63arrie\x72\x20\n\t\t\t\t\x4c\x45\x46\x54\x20\x4aO\x49\x4e\x20"._DB_PREFIX_."\x63ar\x72ier_la\x6e\x67 \x63\x6c\x20ON\x20(\x63.\x69d_\x63ar\x72\x69er\x20\x3d\x20cl\x2e\x69\x64_\x63a\x72rier A\x4eD \x63l\x2eid\x5flan\x67\x20=\x20".(int)${$yzcjatgrxpwv}.Shop::addSqlRestrictionOnLang("\x63l").")\n\t\t\t\x77h\x65r\x65 c.d\x65l\x65\x74ed\x20= \x30\x20\n\t     \x20\x20  \x20 \x20\x20\x20 \x20\x41N\x44 \x49\x46NULL(\x63o.\x69d_o\x77\x6e\x65r,0)\x20IN\x20(\x30,\x20".(int)${${"G\x4c\x4f\x42\x41LS"}["\x72df\x75\x6f\x6bj\x6d"]}.")\n\t\t\t";return Db::getInstance()->executeS(${${"\x47\x4c\x4f\x42A\x4cS"}["g\x6a\x6cg\x66\x63\x70\x6a"]});}public static function getPickupCentersBySellerId($id_seller,$id_lang){${"\x47\x4c\x4f\x42AL\x53"}["\x79\x74w\x65\x77\x79"]="\x69d\x5f\x63a\x72\x72\x69\x65\x72";${${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x6a\x78\x63\x78i\x6f"]}=(int)Configuration::get("A\x47\x49\x4cE\x5f\x50\x49CKUPCE\x4eT\x45R\x5f\x43\x41RR\x49ER_ID");${"\x47L\x4fBA\x4cS"}["m\x71tk\x6dfx\x71\x62l\x74"]="\x73\x71\x6c";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x71\x74\x6b\x6d\x66\x78\x71\x62\x6c\x74"]}="S\x65le\x63t \x6c\x2e\x69\x64_lo\x63\x61t\x69\x6fn, \x6c\x2eid\x5fc\x61\x72\x72ier,\x20\x63\x2e\x6ea\x6d\x65 as \x63a\x72\x72\x69\x65\x72,l.\x6co\x63a\x74\x69o\x6e,\x20l.acti\x76e,\x6c\x2eadd\x72\x65ss\x31,\x6c\x2e\x70\x6f\x73\x74\x63ode,l\x2e\x63it\x79,\x63\x6c\x2en\x61\x6d\x65 \x61\x73 \x63ou\x6et\x72\x79 \n\t\t\tfro\x6d "._DB_PREFIX_."\x6c\x6fca\x74\x69\x6f\x6e\x20\x6c "."I\x4e\x4e\x45R JO\x49\x4e "._DB_PREFIX_."\x63\x61r\x72\x69\x65r c\x20\x6f\x6e\x20\x63\x2e\x69d\x5f\x63\x61\x72r\x69er=l.\x69\x64_ca\x72rie\x72\x20"."L\x45F\x54 JO\x49\x4e "._DB_PREFIX_."\x63o\x75\x6e\x74r\x79\x5fl\x61\x6e\x67 \x63\x6c ON\x20(\x6c\x2e\x69d\x5f\x63o\x75nt\x72\x79\x20=\x20c\x6c\x2eid\x5fcou\x6e\x74\x72y \x41\x4e\x44\x20\x63\x6c\x2eid\x5fla\x6eg =\x20".(int)${${"GL\x4f\x42A\x4c\x53"}["\x6e\x6b\x61\x6b\x7a\x6b\x63"]}."\x20)\x20WH\x45RE\x20\x6c.d\x65\x6c\x65\x74e\x64 = \x30\x20 A\x4eD \x6c.i\x64_sell\x65\x72 \x3d ".(int)${${"\x47\x4cO\x42\x41LS"}["rd\x66u\x6f\x6b\x6am"]}." AND\x20\x6c.i\x64\x5fcar\x72\x69e\x72\x20=\x20".${${"G\x4c\x4fB\x41L\x53"}["\x79\x74we\x77y"]};$novjql="s\x71l";return Db::getInstance()->executeS(${$novjql});}public static function getTaxes($id_lang){${"\x47L\x4fBAL\x53"}["\x66n\x63n\x65dz\x66g\x65\x64\x78"]="\x73ql";${"\x47LO\x42\x41LS"}["y\x64y\x71\x70\x78\x71\x73"]="sq\x6c";${${"G\x4cOBAL\x53"}["f\x6e\x63\x6ee\x64\x7af\x67\x65\x64x"]}="\x53elec\x74 * f\x72o\x6d "._DB_PREFIX_."t\x61\x78\x5f\x6c\x61\x6eg\x20\x77\x68e\x72\x65 id\x5f\x6cang\x20= ".${${"\x47\x4c\x4f\x42A\x4cS"}["n\x6b\x61k\x7a\x6bc"]};return Db::getInstance()->executeS(${${"\x47\x4cOBA\x4c\x53"}["\x79\x64\x79\x71\x70\x78q\x73"]});}public static function get_id_seller_for_filter(){${"\x47\x4c\x4f\x42\x41L\x53"}["\x6em\x71dym\x6a\x76"]="\x70\x72\x6f\x64\x75\x63\x74s";$vcvsskfii="\x70a\x67\x65\x6e\x61\x6d\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x79\x6fha\x70h\x6ajr"]="p\x72\x6f\x64uct";global$cookie,$cart;include_once(_PS_ROOT_DIR_."/\x6do\x64\x75\x6ce\x73/agile\x6d\x75l\x74\x69ple\x73\x65l\x6c\x65r/S\x65llerInfo.p\x68p");${"\x47L\x4f\x42A\x4cS"}["\x68\x6a\x79mdj\x6b"]="\x70\x72o\x64\x75c\x74";${$vcvsskfii}=AgileHelper::getPageName();switch(${${"\x47\x4cO\x42A\x4c\x53"}["\x6b\x68\x61\x65\x6dx\x79\x6d"]}){case"se\x6c\x6c\x65rcarri\x65\x72\x64\x65\x74ai\x6c\x2e\x70hp":case"se\x6c\x6cerc\x61rrie\x72ra\x6eges\x2ephp":case"s\x65\x6cl\x65\x72ca\x72\x72\x69e\x72\x73.\x70\x68\x70":${${"\x47\x4cO\x42A\x4c\x53"}["y\x78j\x77\x79\x79\x63\x71\x6fx"]}=new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));return$sellerinfo->id_seller;case"s\x65l\x6ce\x72pro\x64\x75c\x74\x64etail\x2ep\x68p":case"a\x64\x6di\x6epr\x6f\x64\x75ct\x73\x2ep\x68p":if(!Module::isInstalled("a\x67ilemu\x6ct\x69p\x6ces\x65\x6cle\x72"))return 0;if(Module::isInstalled("\x61gil\x65\x73\x65\x6c\x6c\x65\x72s\x68\x69p\x70in\x67")){return AgileSellerManager::getObjectOwnerID("\x70ro\x64\x75c\x74",(int)Tools::getValue("\x69d\x5f\x70ro\x64uct"));}else{if((int)$cookie->id_employee>0 AND(int)$cookie->profile==(int)Configuration::get("A\x47\x49\x4c\x45_MS_P\x52OFIL\x45_\x49D"))return(int)$cookie->id_employee;return 0;}break;case"\x61dminc\x61rri\x65\x72\x73.p\x68p":case"\x61\x64\x6din\x73\x68i\x70\x70\x69n\x67.php":case"\x61\x64m\x69\x6er\x61\x6e\x67e\x70r\x69\x63e.ph\x70":case"\x61\x64\x6d\x69n\x72a\x6e\x67e\x77eight.\x70\x68p":if((int)$cookie->id_employee>0 AND(int)$cookie->profile==(int)Configuration::get("\x41\x47\x49L\x45\x5fM\x53_\x50\x52\x4fF\x49LE\x5f\x49\x44"))return(int)$cookie->id_employee;return 0;default:if(Module::isInstalled("a\x67i\x6c\x65\x73ell\x65rs\x68\x69p\x70\x69\x6eg"))return 0;if((int)Configuration::get("A\x47I\x4c\x45_MS\x5f\x43A\x52T\x5fMO\x44E")!=1)return 0;if(!Validate::isLoadedObject(${${"\x47\x4cO\x42A\x4c\x53"}["\x69x\x6f\x62\x69\x78\x70yft"]}))return 0;${${"\x47LO\x42\x41\x4cS"}["\x6em\x71d\x79\x6dj\x76"]}=$cart->getProducts();if(!sizeof(${${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x67\x68\x6a\x71\x71\x76c"]}))return 0;${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6fhaph\x6aj\x72"]}=array_shift(${${"G\x4c\x4fB\x41\x4c\x53"}["\x70g\x68j\x71q\x76c"]});return intval(AgileSellerManager::getObjectOwnerID("p\x72\x6f\x64\x75\x63t",${${"\x47\x4cOB\x41\x4c\x53"}["\x68j\x79m\x64\x6a\x6b"]}["i\x64\x5fpr\x6f\x64\x75\x63\x74"]));}}public static function get_id_seller_for_filter4att(){$umcwfsoceiq="\x73\x65ll\x65\x72in\x66\x6f";global$cookie,$cart;include_once(_PS_ROOT_DIR_."/\x6d\x6fdu\x6c\x65s/a\x67ilem\x75lti\x70\x6c\x65\x73\x65l\x6c\x65\x72/S\x65\x6cle\x72\x49nfo\x2e\x70\x68\x70");${${"G\x4c\x4fB\x41\x4c\x53"}["k\x68\x61\x65\x6d\x78\x79\x6d"]}=AgileHelper::getPageName();switch(${${"\x47LO\x42A\x4c\x53"}["\x6b\x68\x61emxy\x6d"]}){case"sell\x65\x72\x70ro\x64\x75\x63tdet\x61\x69\x6c\x2ep\x68\x70":${$umcwfsoceiq}=new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));return$sellerinfo->id_seller;case"a\x64\x6d\x69\x6e\x70rod\x75\x63\x74s\x2ep\x68p":if($cookie->profile==(int)Configuration::get("AG\x49LE\x5fM\x53\x5f\x50ROF\x49LE_\x49\x44"))return$cookie->id_employee;return 0;default:return 0;}}public static function current_logged_seller_id(){global$cookie,$cart;if(!isset(${${"G\x4cOB\x41L\x53"}["\x77z\x7af\x72\x77\x63\x70"]}))return 0;if($cookie->id_employee>0){if(intval($cookie->profile)==Configuration::get("\x41G\x49L\x45_M\x53_P\x52\x4f\x46\x49\x4cE_I\x44"))return intval($cookie->id_employee);else return 0;}else{include_once(_PS_ROOT_DIR_."/module\x73/\x61g\x69lem\x75l\x74i\x70\x6ce\x73e\x6cle\x72/S\x65\x6cle\x72\x49n\x66o.\x70\x68p");${"GL\x4fB\x41L\x53"}["w\x74h\x70i\x67r"]="se\x6cle\x72i\x6e\x66\x6f";${${"\x47L\x4f\x42\x41\x4cS"}["\x79x\x6a\x77\x79\x79c\x71o\x78"]}=new SellerInfo(SellerInfo::getIdByCustomerId(Context::getContext()->customer->id),Context::getContext()->language->id);if(Validate::isLoadedObject(${${"\x47\x4c\x4f\x42AL\x53"}["w\x74\x68p\x69\x67\x72"]}))return$sellerinfo->id_seller;return 0;}}public static function get_current_logged_seller_home_category_id(){if(!Module::isInstalled("\x61gi\x6c\x65mu\x6c\x74ip\x6c\x65s\x65\x6c\x6c\x65\x72"))return 0;${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x79\x69\x6c\x6c\x79\x68f\x64\x64hf"]="i\x64_\x73\x65\x6c\x6c\x65\x72";require_once(_PS_ROOT_DIR_."/m\x6f\x64\x75\x6ce\x73/agi\x6ce\x6d\x75\x6ctiples\x65\x6c\x6c\x65\x72/\x53e\x6c\x6ce\x72\x49\x6efo.p\x68\x70");${"G\x4cOB\x41\x4c\x53"}["\x62\x61\x6cg\x73\x76v\x73y\x64x"]="\x69\x64\x5f\x73\x65\x6c\x6cer";$ikyotdne="\x73el\x6c\x65r\x69\x6e\x66\x6f";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71y\x69\x6c\x6cyhf\x64\x64\x68f"]}=AgileSellerManager::current_logged_seller_id();if(${${"\x47\x4cO\x42\x41\x4cS"}["\x62a\x6c\x67svvs\x79\x64x"]}<=0)return 0;${$ikyotdne}=new SellerInfo(SellerInfo::getIdBSellerId(${${"GL\x4f\x42AL\x53"}["r\x64\x66\x75\x6f\x6b\x6am"]}));if($sellerinfo->id_category_default<=2)return 0;${"G\x4c\x4f\x42\x41\x4cS"}["fu\x6ck\x68\x75\x64o\x74tp"]="\x63\x61\x74\x65\x67o\x72y";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x71\x6e\x74\x6fu\x7a\x72\x69k"]}=new Category($sellerinfo->id_category_default,Context::getContext()->language->id);if(!Validate::isLoadedObject(${${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x75\x6c\x6bh\x75\x64ot\x74p"]}))return 0;return$sellerinfo->id_category_default;}public static function getXRObjectID($table,$objid){${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x63\x68\x74\x72\x78"]="\x65a\x63cess";$dgeukgvgkl="\x74a\x62l\x65";${${"G\x4c\x4fB\x41\x4c\x53"}["\x6c\x6e\x71pj\x75\x64\x6cay\x70\x71"]}=AgileSellerManager::get_entity_access(${$dgeukgvgkl});${${"GL\x4f\x42\x41\x4c\x53"}["\x72ctf\x69\x63k"]}=intval(Tools::getValue("i\x64_".${${"\x47L\x4fB\x41\x4cS"}["\x75\x63\x68\x74\x72\x78"]}["own\x65\x72\x5fxr_\x74\x61\x62l\x65"]));$cxelgbiznyef="\x78r\x5f\x6fbji\x64";if(${${"\x47LOBA\x4c\x53"}["r\x63tf\x69\x63k"]}==0){${"\x47L\x4f\x42\x41\x4c\x53"}["\x63b\x65yu\x69\x6f\x6c"]="\x74\x61\x62\x6c\x65";$joqyuszi="\x6f\x62j\x69\x64";${"\x47L\x4f\x42A\x4cS"}["q\x77\x62\x74\x75\x70x\x6c\x65\x6f\x71"]="\x74\x61\x62\x6c\x65";$chibhg="\x73\x71\x6c";${"\x47LO\x42\x41L\x53"}["\x7a\x6b\x6fy\x66v\x6anz\x76"]="\x78\x72\x5f\x6fb\x6a\x69\x64";${$chibhg}="\x53\x45\x4cE\x43\x54\x20i\x64_".${${"\x47L\x4f\x42\x41\x4cS"}["\x6cn\x71\x70\x6a\x75\x64\x6ca\x79pq"]}["o\x77\x6e\x65\x72\x5f\x78\x72_tabl\x65"]." \x46R\x4f\x4d "._DB_PREFIX_.${${"GLOB\x41\x4cS"}["c\x62ey\x75\x69\x6fl"]}." \x57\x48\x45R\x45\x20id\x5f".${${"\x47\x4c\x4f\x42A\x4c\x53"}["qw\x62t\x75\x70\x78\x6c\x65o\x71"]}."=".${$joqyuszi};${${"\x47\x4cO\x42\x41L\x53"}["z\x6boyfvj\x6e\x7a\x76"]}=Db::getInstance()->getValue(${${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x6a\x6c\x67\x66c\x70j"]});}return${$cxelgbiznyef};}public static function seller_payment_uses($id_cart,$module){${"\x47\x4cO\x42\x41L\x53"}["\x62\x62\x6e\x72\x74k\x78x"]="\x69d\x5fca\x72\x74";${"G\x4c\x4f\x42A\x4cS"}["q\x6d\x72ir\x79\x62\x62kc"]="\x72\x6f\x77";${"\x47L\x4fB\x41L\x53"}["\x71e\x78\x6c\x6cv\x6c\x73\x7a"]="\x73\x71l";${${"\x47\x4c\x4fB\x41L\x53"}["g\x6al\x67\x66c\x70\x6a"]}="\x53E\x4cECT C\x4fU\x4e\x54(*) \x41\x53 \x6e\x75m, SUM(in\x5f\x75se) AS i\x6e\x5fu\x73\x65\n\t\t\t\t\x46\x52OM\n\t\t\t\t(\n\t\t\t\t\tSE\x4cEC\x54\x20I\x46\x4eU\x4cL(p\x6f\x2ei\x64\x5f\x6fw\x6ee\x72,\x30) A\x53 i\x64\x5f\x73\x65l\x6cer, \x4dAX(CA\x53\x45\x20\x57\x48\x45\x4e I\x46N\x55L\x4c(po\x2e\x69\x64_\x6fwne\x72,\x30) =\x20\x30\x20OR\x20IF\x4e\x55LL(as\x70.in_us\x65,\x30)\x3d1 \x54\x48EN \x31\x20ELSE\x20\x30 \x45\x4e\x44)\x20AS i\x6e_u\x73e \n\t\t\t\t\tFROM "._DB_PREFIX_."\x63\x61\x72\x74\x5fp\x72od\x75\x63\x74\x20\x63p\n\t\t\t\t\t\t\x4cE\x46\x54\x20\x4a\x4f\x49N\x20"._DB_PREFIX_."\x70\x72o\x64u\x63\x74\x5f\x6fwn\x65r p\x6f \x6fn\x20c\x70.\x69d\x5fp\x72\x6f\x64u\x63t\x3d\x70\x6f.\x69\x64_\x70roduct\n\t\t\t\t\t\tL\x45F\x54 JOI\x4e "._DB_PREFIX_."\x61g\x69l\x65_s\x65l\x6cer\x5fp\x61\x79men\x74i\x6e\x66\x6f \x61\x73\x70 O\x4e \x70o\x2ei\x64\x5fow\x6ee\x72=as\x70\x2eid\x5fsel\x6ce\x72\x20\x41\x4eD \x61\x73p\x2e\x6d\x6f\x64\x75le_na\x6de='".${${"\x47\x4c\x4fB\x41LS"}["ib\x73\x6etf\x6do\x72\x6a\x67"]}."'\n\t\t\t\t\tWH\x45\x52\x45 \x69\x64\x5fcart = ".${${"\x47\x4c\x4f\x42AL\x53"}["bb\x6er\x74\x6b\x78x"]}."\n\t\t\t\t\t\x47\x52\x4f\x55P\x20BY \x49F\x4e\x55\x4cL(po\x2e\x69d\x5fo\x77ne\x72,0)\n\t\t\t\t) \x54\t\t\n\t\t\t\t";${${"\x47\x4c\x4fBALS"}["\x71\x6d\x72\x69\x72y\x62b\x6b\x63"]}=Db::getInstance()->getRow(${${"\x47\x4c\x4f\x42A\x4c\x53"}["qexl\x6cvl\x73\x7a"]});if((int)${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62q\x72\x62\x63x\x76\x6d\x6fn"]}["\x6eu\x6d"]==(int)${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x71r\x62c\x78\x76\x6d\x6fn"]}["\x69n_u\x73e"])return 1;if((int)${${"\x47L\x4fBALS"}["b\x71\x72b\x63\x78\x76\x6don"]}["\x6e\x75m"]==0)return 0;else return 2;}public static function getAdditionalSqlForProducts($prefix,$no_special_products=false){${"\x47L\x4fB\x41L\x53"}["\x6c\x6c\x64\x6c\x62\x79\x6e\x6c\x75l"]="j\x6fi\x6es";global$cookie;${${"\x47\x4c\x4f\x42AL\x53"}["\x6c\x6c\x64\x6cb\x79\x6e\x6c\x75\x6c"]}="";${${"\x47\x4c\x4fB\x41\x4cS"}["\x75\x73\x6c\x63\x6c\x6d\x64l"]}="";${${"G\x4c\x4f\x42AL\x53"}["p\x6f\x70xm\x6cu\x66l"]}="";if(Module::isInstalled("ag\x69lemul\x74\x69p\x6ce\x73e\x6c\x6c\x65\x72")){$bltwkcqn="\x69\x64\x5fs\x68\x6f\x70\x5f\x6f\x77\x6e\x65r";${"\x47L\x4fBAL\x53"}["\x6a\x63\x62\x62\x62\x6bvu\x6c\x6dq\x64"]="\x70\x72\x65f\x69x";$jqzjjufmyv="w\x68ere\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["y\x61\x64\x64hhs"]="\x73elec\x74\x73";${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x6e\x78\x64\x6b\x73q\x70i"]="\x6a\x6f\x69ns";${"GL\x4f\x42\x41L\x53"}["\x70\x63\x6bk\x76\x74l\x78"]="s\x65\x6c\x65\x63\x74\x73";require_once(_PS_ROOT_DIR_."/\x6d\x6f\x64\x75\x6c\x65s/a\x67il\x65m\x75lt\x69pleselle\x72/\x61\x67ilem\x75lti\x70l\x65\x73\x65\x6cl\x65\x72\x2ep\x68p");$ifawylltscr="\x73\x70\x65c\x69\x61\x6c\x63\x61\x74eg\x6f\x72\x79\x69\x64\x73";${${"G\x4c\x4f\x42\x41L\x53"}["\x69t\x6a\x65\x71\x6e\x76\x64"]}=${${"\x47LO\x42AL\x53"}["\x70\x6e\x78d\x6b\x73\x71\x70\x69"]}."\n\x20   \x20  \x20 \x20\x20 \x20 \x20 \x20LEFT\x20JO\x49\x4e \x60"._DB_PREFIX_."\x70\x72o\x64uc\x74\x5fown\x65\x72\x60\x20a_\x70o ON ".${${"G\x4c\x4fBA\x4c\x53"}["jc\x62b\x62\x6b\x76\x75l\x6d\x71\x64"]}."\x2eid_\x70\x72od\x75ct=a_\x70o.\x69\x64_p\x72\x6fduct\n  \x20\x20\x20 \x20 \x20 \x20\x20  \x20  \x4c\x45F\x54 J\x4f\x49N\x20`"._DB_PREFIX_."s\x65\x6cle\x72in\x66\x6f`\x20a_\x73\x20O\x4e \x61_po.id_o\x77\x6ee\x72\x3d\x61\x5fs\x2eid_\x73\x65l\x6c\x65\x72\n  \x20\x20 \x20\x20\x20  \x20\x20\x20\x20\x20 \x20LE\x46\x54\x20\x4aO\x49N\x20`"._DB_PREFIX_."s\x65\x6c\x6ceri\x6e\x66o\x5fla\x6eg`\x20\x61\x5f\x73\x6c O\x4e\x20(\x61_sl\x2ei\x64\x5f\x73el\x6c\x65\x72\x69\x6efo=\x61\x5fs.\x69d\x5f\x73\x65ll\x65\x72\x69nf\x6f  \x41N\x44 a\x5f\x73l.\x69\x64\x5f\x6cang=".intval($cookie->id_lang).")\n  \x20 \x20  \x20\x20   \x20\x20 \x20 ";${"\x47L\x4f\x42\x41LS"}["\x6e\x6c\x77\x6e\x76a\x7a\x63zt\x6a"]="\x77\x68\x65\x72\x65s";${${"\x47LO\x42ALS"}["\x70\x6f\x70\x78\x6dl\x75fl"]}=${${"\x47L\x4fB\x41\x4c\x53"}["\x70ckk\x76\x74\x6cx"]}."\n \x20\x20\x20\x20  \x20\x20 \x20\x20   \x20,\x61_\x73l\x2e\x63o\x6dpa\x6e\x79\x20\x61s\x20\x73el\x6c\x65r,\x20\x61\x5f\x73\x2e\x69\x64_sel\x6cer\n\x20\x20\x20   \x20\x20\x20\x20  ";if(Module::isInstalled("a\x67il\x65se\x6c\x6cerpr\x6fdu\x63ts")||Module::isInstalled("\x61\x67il\x65mu\x6c\x74ip\x6c\x65s\x68\x6fp"))${${"G\x4c\x4f\x42\x41L\x53"}["\x70op\x78\x6d\x6cu\x66\x6c"]}=${${"G\x4c\x4fBA\x4c\x53"}["ya\x64\x64\x68hs"]}."\n    \x20 \x20\x20\x20\x20\x20  \x20\x20\x20 \x20\x20\x20,1\x20AS \x68as_\x73elle\x72\x6c\x69nk\n\x20\x20\x20  \x20  \x20 \x20\x20    ";$koxubiyqi="\x73\x70ec\x69a\x6c\x63at\x65\x67\x6f\x72yi\x64\x73";${$jqzjjufmyv}=${${"G\x4cOB\x41L\x53"}["\x6e\x6cw\x6ev\x61\x7ac\x7atj"]}.(Shop::${${"\x47\x4c\x4f\x42\x41\x4cS"}["je\x70si\x74g\x6b"]}>0?" A\x4e\x44\x20a\x5fs\x2eid\x5f\x73el\x6c\x65\x72\x3d".Shop::${$bltwkcqn}:"");if(intval(Configuration::get("A\x47ILE\x5f\x4dS\x5fP\x52\x4fD\x55C\x54_\x41\x50\x50R\x4f\x56\x41\x4c"))){${${"\x47\x4cO\x42\x41L\x53"}["\x75\x73\x6c\x63\x6c\x6d\x64\x6c"]}=${${"G\x4cO\x42A\x4cS"}["\x75\x73\x6c\x63\x6c\x6d\x64l"]}." AND (\x49\x46NU\x4c\x4c(\x61_p\x6f\x2ea\x70\x70\x72\x6f\x76ed,\x30) \x3d \x31\x20O\x52 I\x46\x4e\x55\x4cL(\x61\x5f\x70o\x2ei\x64_\x6f\x77ner,\x30)\x3d0)\x20";}${$koxubiyqi}=AgileMultipleSeller::getSpecialCatrgoryIds();if(!empty(${$ifawylltscr})&&${${"\x47L\x4f\x42\x41\x4c\x53"}["s\x7a\x6bdz\x70\x66\x6d\x7a"]}){$ywektjvfgc="\x77he\x72e\x73";${${"GL\x4f\x42\x41L\x53"}["\x75\x73\x6cc\x6c\x6ddl"]}=${$ywektjvfgc}."\x20AND\x20".${${"\x47\x4c\x4f\x42AL\x53"}["bnc\x6f\x71\x6c"]}."\x2eid\x5f\x63\x61t\x65\x67ory_d\x65\x66\x61ult \x4eO\x54\x20\x49N\x20(".${${"GL\x4f\x42AL\x53"}["\x6aa\x6fk\x6aes\x62\x74\x74"]}.")";}}if(Module::isInstalled("agil\x65\x73e\x6c\x6c\x65\x72l\x69\x73top\x74\x69\x6f\x6e\x73")){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x72\x70\x63\x6a\x71\x68\x6b\x6f\x76ys"]="\x70\x72\x65\x66\x69x";$uejvflft="p\x72e\x66\x69x";${"\x47\x4c\x4f\x42\x41\x4cS"}["x\x64pr\x68\x69p\x63lx\x61"]="\x73e\x6c\x65c\x74\x73";require_once(_PS_ROOT_DIR_."/\x6do\x64ule\x73/ag\x69l\x65s\x65llerli\x73t\x6f\x70\x74\x69\x6fn\x73/\x61g\x69l\x65\x73e\x6cle\x72l\x69s\x74opt\x69\x6f\x6es\x2ep\x68\x70");${${"\x47L\x4f\x42A\x4cS"}["itje\x71\x6e\x76\x64"]}=${${"\x47\x4c\x4f\x42AL\x53"}["it\x6a\x65qn\x76\x64"]}."\n\x20     \x20 \x20\x20  \x20\x20 \x20\x4cE\x46\x54 JOI\x4e\x20\x60"._DB_PREFIX_."se\x6cl\x65\x72\x5flis\x74\x6fp\x74\x69\x6fn` \x61\x5fsl\x68 ON (".${$uejvflft}.".i\x64\x5fp\x72\x6f\x64\x75ct \x3d \x61_s\x6c\x68\x2e\x69\x64_prod\x75c\x74 \x41\x4e\x44 a_\x73\x6ch.i\x64_\x6fp\x74i\x6f\x6e =\x20".AgileSellerListOptions::ASLO_OPTION_HOT.")\n \x20\x20 \x20\x20\x20\x20\x20 \x20\x20\x20  \x20L\x45\x46\x54\x20\x4aOI\x4e\x20`"._DB_PREFIX_."s\x65\x6c\x6c\x65\x72\x5f\x6cis\x74\x6f\x70t\x69on\x60\x20a_sl\x74 ON\x20(".${${"\x47\x4cO\x42\x41\x4cS"}["\x62\x6eco\x71\x6c"]}.".i\x64\x5fpro\x64\x75c\x74\x20\x3d\x20\x61\x5fs\x6c\x74\x2e\x69d\x5fp\x72\x6f\x64uct \x41N\x44\x20a\x5fs\x6ct.\x69d_o\x70t\x69on =\x20".AgileSellerListOptions::ASLO_OPTION_LISTTOP.")\n\x20\x20    \x20\x20  \x20 \x20 \x20\x20LE\x46\x54\x20\x4a\x4fIN \x60"._DB_PREFIX_."\x73e\x6c\x6ce\x72_\x6c\x69s\x74opt\x69on` a_s\x6cb\x20\x4f\x4e (".${${"G\x4cO\x42\x41\x4c\x53"}["\x66\x72\x70\x63\x6aq\x68\x6b\x6f\x76y\x73"]}.".\x69d\x5fp\x72o\x64u\x63\x74 = a\x5fslb.i\x64\x5fpr\x6f\x64u\x63\x74\x20\x41\x4eD a\x5f\x73\x6c\x62.id_\x6fpti\x6fn =\x20".AgileSellerListOptions::ASLO_OPTION_LIST.")\n \x20\x20  \x20\x20\x20\x20\x20  \x20\x20 \x20";${${"\x47\x4c\x4f\x42\x41LS"}["\x78\x64\x70r\x68\x69\x70c\x6c\x78\x61"]}=${${"G\x4c\x4fBAL\x53"}["po\x70\x78\x6d\x6c\x75\x66l"]}."\n\x20  \x20  \x20\x20\x20\x20\x20 \t\t\t,\x43\x41S\x45 WH\x45N\x20a\x5f\x73\x6ch\x2e\x73t\x61\x74u\x73\x20=\x20".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\x20\x54\x48\x45\x4e 1 ELS\x45 0 \x45N\x44 AS\x20\x69sh\x6ft\n  \x20\x20\x20 \x20 \x20  \x20\t\t\t,C\x41SE \x57\x48EN\x20a_s\x6ct\x2e\x73\x74\x61t\x75\x73 =\x20".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\x20THE\x4e\x200-RA\x4eD()\x20EL\x53E\x200\x20E\x4e\x44 A\x53 \x70osi\x74ion2\n \x20\x20\x20\x20\x20    \x20 \x20 \x20\x20 \x20  ";${${"GLOB\x41\x4c\x53"}["u\x73lc\x6c\x6d\x64l"]}=${${"\x47\x4c\x4f\x42\x41LS"}["\x75s\x6ccl\x6ddl"]}." \n\x20 \x20 \t\t\x20 \x20 AN\x44 (a_\x73l\x62.sta\x74\x75s = ".AgileSellerListOptions::ASLO_STATUS_IN_EFFECT."\x20\x4fR IFNU\x4cL(\x61\x5fp\x6f.id_ow\x6e\x65\x72,0)\x20=\x200)\n\t\t\t\t\n   \x20    \x20 \x20\x20\x20\x20 \x20";}return array("\x73e\x6c\x65\x63\x74\x73"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70op\x78\x6d\x6c\x75f\x6c"]},"j\x6fi\x6e\x73"=>${${"\x47\x4cOBALS"}["\x69\x74\x6a\x65\x71\x6e\x76d"]},"\x77here\x73"=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["us\x6c\x63\x6c\x6dd\x6c"]});}public static function prepareSellerRattingInfo($data){$xiuatjjmgyqo="d\x61\x74\x61";if(Module::isInstalled("\x61g\x69l\x65\x73eller\x72\x61ti\x6e\x67\x73")){$tdegdkrprh="\x6d\x6fd\x75\x6c\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x75\x7a\x6efhm\x6f\x71w\x78"]="d\x61\x74a";require_once(_PS_ROOT_DIR_."/\x6dod\x75le\x73/\x61\x67\x69l\x65se\x6clerr\x61\x74\x69\x6eg\x73/\x61\x67il\x65\x73\x65\x6cle\x72r\x61\x74\x69n\x67\x73\x2eph\x70");${"\x47L\x4f\x42\x41\x4c\x53"}["k\x73\x6dh\x6av\x76"]="\x64\x61\x74\x61";${${"G\x4c\x4fB\x41\x4c\x53"}["\x69\x62\x73\x6e\x74\x66mo\x72j\x67"]}=new AgileSellerRatings();if(method_exists(${$tdegdkrprh},"\x61\x73s\x69gn\x53\x65\x6c\x6ce\x72Ra\x74\x69\x6eg\x46o\x72\x4ci\x73\x74"))${${"G\x4c\x4f\x42A\x4c\x53"}["\x6bs\x6d\x68\x6av\x76"]}=$module->assignSellerRatingForList(${${"\x47\x4c\x4f\x42A\x4cS"}["\x75z\x6ef\x68\x6doq\x77\x78"]},true);}return${$xiuatjjmgyqo};}public static function ensure_configuration_record_for_all_shops(){$sgnqwsobmd="\x73\x71\x6c";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6f\x76g\x6cb\x73k\x67\x70\x68"]="\x69\x64\x5fma\x69\x6e\x5fs\x74or\x65";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x76\x67\x6c\x62s\x6b\x67p\x68"]}=intval(Configuration::get("PS_\x53\x48\x4f\x50\x5fD\x45\x46\x41U\x4cT"));$nqsvbxqs="s\x71\x6c";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x6f\x6e\x70\x6c\x71"]}=intval(Configuration::get("\x50S\x5f\x52E\x57R\x49\x54\x49N\x47\x5fS\x45\x54\x54\x49NGS",null,null,${${"GLO\x42\x41\x4c\x53"}["lww\x73\x75mlw"]}));${$sgnqwsobmd}="IN\x53ERT\x20\x49\x4eTO\x20"._DB_PREFIX_."configur\x61ti\x6fn (id\x5fs\x68\x6fp\x5f\x67ro\x75\x70,id\x5fs\x68\x6fp,\x6e\x61me,\x76alu\x65)\n\t\t\t\t\x53\x45LEC\x54 \x4eUL\x4c,\x69\x64_\x73\x68\x6f\x70,\x27\x50\x53\x5fR\x45\x57R\x49TIN\x47\x5fS\x45\x54\x54\x49N\x47S',\x20$rewritting_settings\n\t\t\t\tFROM\n\t\t\t\t(\n\t\t\t\t\tS\x45\x4c\x45CT s.id\x5fshop \x61s i\x64\x5fs\x68op,\x20MA\x58(IF\x4e\x55LL(\x63.id_\x63on\x66\x69gur\x61t\x69\x6f\x6e,0))\x20\x41\x53\x20\x69d\x5fcon\x66\x69g\x75\x72a\x74\x69\x6fn\n\t\t\t\t\t\x46\x52OM\x20\x60"._DB_PREFIX_."\x73ho\x70` \x73\n\t\t\t\t\t\x4cEF\x54 J\x4f\x49N "._DB_PREFIX_."c\x6fn\x66\x69\x67\x75\x72\x61\x74\x69on\x20\x63\x20\x4fN s.\x69d\x5f\x73h\x6f\x70\x3dc\x2eid\x5fs\x68op\x20\x41ND c.\x6e\x61\x6de\x3d'PS\x5f\x52EW\x52IT\x49N\x47_SETT\x49N\x47S'\n\t\t\t\t\t\x47RO\x55p BY \x73.i\x64\x5fs\x68\x6fp\n\t\t\t\t)AS \x54\n\t\t\t\t\x57\x48\x45R\x45 \x69d\x5fc\x6fnfigur\x61ti\x6fn\x20\x3d\x30\n\t\t";Db::getInstance()->Execute(${${"G\x4cO\x42\x41\x4cS"}["\x67\x6a\x6cgfc\x70\x6a"]});${$nqsvbxqs}="UPDA\x54\x45 "._DB_PREFIX_."con\x66i\x67\x75r\x61t\x69o\x6e \x53ET val\x75\x65=$rewritting_settings WH\x45RE na\x6d\x65\x3d\x27\x50\x53_\x52E\x57R\x49\x54I\x4eG_S\x45\x54\x54I\x4eG\x53' \x41\x4e\x44 i\x64\x5f\x73\x68op>\x30 \x41ND\x20v\x61\x6cue!=$rewritting_settings";Db::getInstance()->Execute(${${"\x47LO\x42\x41L\x53"}["\x67j\x6c\x67f\x63\x70\x6a"]});}}
?>